Skip to content

Commit 26b79f8

Browse files
authored
Corrected comment error in assembly-blink example (#337)
1 parent 6b8b486 commit 26b79f8

File tree

1 file changed

+2
-2
lines changed
  • examples/assembly-blink/src

1 file changed

+2
-2
lines changed

examples/assembly-blink/src/main.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ blink:
2020
delay_ms:
2121
; Delay about (r25:r24)*ms. Clobbers r30, and r31.
2222
; One millisecond is about 16000 cycles at 16MHz.
23-
; The inner loop takes 4 cycles, so we repeat it 3000 times
23+
; The inner loop takes 4 cycles, so we repeat it 4000 times
2424
ldi r31, hi8(4000)
2525
ldi r30, lo8(4000)
2626
1:
2727
sbiw r30, 1
2828
brne 1b
2929
sbiw r24, 1
3030
brne delay_ms
31-
ret
31+
ret

0 commit comments

Comments
 (0)