ma_light: add "malstate".

report state change (i.e. when switching LED on/off).
This commit is contained in:
Martin Preuss
2025-09-22 22:44:39 +02:00
parent 12a64b8c91
commit 408b173ae1
7 changed files with 43 additions and 7 deletions

View File

@@ -64,8 +64,12 @@ AppMotionLight_OnPacketReceived_checkTimer:
lds r17, appMotionLightTimer+1
or r16, r17
brne AppMotionLight_OnPacketReceived_startTimer ; no, just restart timer (light already on)
rcall appMotionLightTurnOn ; (r16, r17, r18, r19, r20, r21, r23, r24, r25)
AppMotionLight_OnPacketReceived_startTimer:
push xl
push xh
rcall appMotionLightTurnOn ; (r16, r17, r18, r19, r20, r21, r22, r23, r24, r25, X)
pop xh
pop xl
AppMotionLight_OnPacketReceived_startTimer:
rcall appMotionLightStartTimer
AppMotionLight_OnPacketReceived_secRet:
sec