From: Stephan Baerwolf Date: Mon, 16 Dec 2013 18:22:36 +0000 (+0100) Subject: make "BOOTLOADER_ADDITIONALMSDEVICEWAIT" more compiling robust X-Git-Tag: testing-head~4 X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/commitdiff_plain/45fd44c6dd933b7b79274e6d03da013066b2682f make "BOOTLOADER_ADDITIONALMSDEVICEWAIT" more compiling robust Signed-off-by: Stephan Baerwolf --- diff --git a/firmware/main.c b/firmware/main.c index 2f44357..e4a2104 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -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"