avr: fixed timer usage in COM2 and COM2_PROTO module.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user