From 45fd44c6dd933b7b79274e6d03da013066b2682f Mon Sep 17 00:00:00 2001 From: Stephan Baerwolf Date: Mon, 16 Dec 2013 19:22:36 +0100 Subject: [PATCH] make "BOOTLOADER_ADDITIONALMSDEVICEWAIT" more compiling robust Signed-off-by: Stephan Baerwolf --- firmware/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.11.0