avr: fixed a bug.

answering with a PONG to a PING packet works again.
This commit is contained in:
Martin Preuss
2023-04-16 23:54:39 +02:00
parent 519546babd
commit 4467f60645

View File

@@ -92,6 +92,9 @@ cproHandlePing:
breq cproHandlePing_notHandled
inc r16
breq cproHandlePing_notHandled ; dont handle src address 255
dec r16
ldi xl, LOW(com2SendBuffer)
ldi xh, HIGH(com2SendBuffer)
rcall CPRO_WritePong
rjmp COM2_SendPacket ; use carry flag from this routine
cproHandlePing_notHandled: