From c45eb6cca23d8c287a83cf45db84a0debd2a35dd Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sun, 1 Jun 2025 22:36:26 +0200 Subject: [PATCH] fixed blinkled fn: always switch LED port to output. --- avr/common/debug.asm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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