Modifications

Sauter à la navigation Sauter à la recherche
Ligne 102 : Ligne 102 :  
                         ^
 
                         ^
 
compilation terminated.
 
compilation terminated.
Error compiling.
+
Error compiling.</nowiki>
</nowiki>
     −
In which case you can simply locate where the line is (the error will give you the file name and line number) and 'wrap it' with #ifdef's so it looks like:
+
Ce qui permet de localiser la ligne (et fichier) où s'est produit l'erreur. Il suffira alors de l'inclure dans une structure #ifdef comme celle présentée ci-dessous:
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
#if !defined(ARDUINO_ARCH_SAM) &amp;&amp; !defined(ARDUINO_ARCH_SAMD) &amp;&amp; !defined(ESP8266) &amp;&amp; !defined(ARDUINO_ARCH_STM32F2)
+
#if !defined(ARDUINO_ARCH_SAM) && !defined(ARDUINO_ARCH_SAMD) && !defined(ESP8266) && !defined(ARDUINO_ARCH_STM32F2)
  #include &lt;util/delay.h&gt;
+
  #include <util/delay.h>;
 
#endif
 
#endif
 
</syntaxhighlight>
 
</syntaxhighlight>
   −
The above will also make sure that header file isn't included for other architectures
+
Les lignes ci-dessous font en sorte de ne pas inclure le fichier d'entête pour d'autres architectures.
   −
If the #include is in the arduino sketch itself, you can try just removing the line.
+
Si l'instruction {{fname|#include}} se trouve directement dans votre croquis Arduino alors vous pouvez essayer de retirer cette ligne.
    
== Bootloader Launching ==
 
== Bootloader Launching ==
29 917

modifications

Menu de navigation