diff --git a/avr/common/debug.asm b/avr/common/debug.asm index 110c5f3..1fe774f 100644 --- a/avr/common/debug.asm +++ b/avr/common/debug.asm @@ -38,6 +38,8 @@ DEBUG2: ; @clobbers (R16, R18, R22, R24, R25) blinkLed: + sbi LED_SIMPLE_DDR, LED_SIMPLE_PINNUM ; out +blinkLed_loop: cbi LED_SIMPLE_PORT, LED_SIMPLE_PINNUM ; on mov r22, r20 rcall waitForMultiple100ms ; (R252 @@ -45,7 +47,7 @@ blinkLed: mov r22, r21 rcall waitForMultiple100ms ; (R22) dec r19 - brne blinkLed + brne blinkLed_loop ret