avr: fixed timer usage in COM2 and COM2_PROTO module.

This commit is contained in:
Martin Preuss
2024-09-18 20:24:32 +02:00
parent a1a64fec42
commit 91752156f2
4 changed files with 21 additions and 15 deletions

View File

@@ -86,7 +86,13 @@ cproHandleNeedAddr:
sts cproMode, r24
lds r24, com2Address
clr r25
adiw r25:r24, 3
lsl r24 ; *2
rol r25
lsl r24 ; *4
rol r25
lsl r24 ; *8
rol r25
adiw r25:r24, 30 ; add 3 secs
mov r18, r24
mov r19, r25
rjmp cproAddressSetTimer