fixed blinkled fn: always switch LED port to output.

This commit is contained in:
Martin Preuss
2025-06-01 22:36:26 +02:00
parent b229b39ab8
commit c45eb6cca2

View File

@@ -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