make "BOOTLOADER_ADDITIONALMSDEVICEWAIT" more compiling robust
authorStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Mon, 16 Dec 2013 18:22:36 +0000 (19:22 +0100)
committerStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Mon, 16 Dec 2013 19:54:42 +0000 (19:54 +0000)
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
firmware/main.c

index 2f44357..e4a2104 100644 (file)
@@ -699,10 +699,10 @@ static void _mywait(uint8_t waitloopcnt) {
        * ...if we loop 65536/F_CPU more or less...
        * ...unimportant - just save some opcodes
        */
-"_mywait_sleeploop:                                    \n\t"
+"_mywait_sleeploop%=:                                  \n\t"
       "sbiw    r30,    1                               \n\t"
       "sbci    %0,     0                               \n\t"
-      "brne    _mywait_sleeploop                       \n\t"
+      "brne    _mywait_sleeploop%=                     \n\t"
       : "+d" (waitloopcnt)
       :
       : "r30","r31"