From 4467f606455b38e5e542241d1965a80d30a2ae74 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sun, 16 Apr 2023 23:54:39 +0200 Subject: [PATCH] avr: fixed a bug. answering with a PONG to a PING packet works again. --- avr/comproto.asm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/avr/comproto.asm b/avr/comproto.asm index c47f6e8..4bc7f0f 100644 --- a/avr/comproto.asm +++ b/avr/comproto.asm @@ -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: