ma_light: add "malstate".
report state change (i.e. when switching LED on/off).
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user