From ae1853ba62407d0ee412e92e2b1166465685c17d Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sat, 19 Jul 2025 17:08:19 +0200 Subject: [PATCH] enable sending messages. --- avr/modules/com2w/com2w0.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/avr/modules/com2w/com2w0.asm b/avr/modules/com2w/com2w0.asm index 8d0589e..b9e5e04 100644 --- a/avr/modules/com2w/com2w0.asm +++ b/avr/modules/com2w/com2w0.asm @@ -306,7 +306,7 @@ com2w0WaitForClockLowMulti5Us_stateReached: com2w0SendMsg: ldi r20, 11 ; wait for about 55us for clock low - rcall com2w0WaitForClockLowMulti5Us + rcall com2w0WaitForClockLowMulti5Us ; (R20, R22) brcs com2w0SendMsg_busy ; CLK got low while waiting, so line is busy push r15 in r15, SREG @@ -443,7 +443,7 @@ com2w0ModeJumpTable: ; @clobbers R16, R17, R22, R24, R25, X com2w0RunIdle: -rjmp com2w0RunIdle_end ; DEBUG +;rjmp com2w0RunIdle_end ; DEBUG push r15 in r15, SREG cli @@ -468,7 +468,7 @@ com2w0RunIdle_haveMsg: adiw xh:xl, 1 rcall com2w0SendMsg ; (R16, R17, R22, R24, R25, X) push r15 - inr r15, SREG ; save SREG (no CLI, we want to save CFLAG only) + in r15, SREG ; save SREG (no CLI, we want to save CFLAG only) ldi r16, COM2W_MODE_IDLE rcall com2wSetMode ; (R17) out SREG, r15 ; restore SREG