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