From 25fb6f262de95b5b88c4b8c80b4ede06aa4a9c77 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Wed, 14 May 2025 01:48:40 +0200 Subject: [PATCH] fixed a bug. --- avr/apps/ma_light/recv.asm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/avr/apps/ma_light/recv.asm b/avr/apps/ma_light/recv.asm index aebda82..3f4b254 100644 --- a/avr/apps/ma_light/recv.asm +++ b/avr/apps/ma_light/recv.asm @@ -69,8 +69,12 @@ AppMotionLight_OnPacketReceived_setRGBW: ; "setValue nodes sts appMotionLightColor+1, r19 sts appMotionLightColor+2, r20 sts appMotionLightColor+3, r21 - rcall appMotionLightStartTimer ; immediately ON with new color (r16) - rcall appMotionLightTurnOn ; (r16, r17, r18, r19, r20, r21, r23) + push r24 + push r25 + rcall appMotionLightStartTimer ; immediately ON with new color (r16) + rcall appMotionLightTurnOn ; (r16, r17, r18, r19, r20, r21, r23) + pop r25 + pop r24 rjmp AppMotionLight_OnPacketReceived_sendAck AppMotionLight_OnPacketReceived_setOnTime: ; "setValue nodes/XXXXXXXX/MALONTIME n" (n in 1/10 secs) sts appMotionLightOnTime, r18