fixed return values.
This commit is contained in:
@@ -124,10 +124,14 @@ MotionLight_OnPacketReceived:
|
|||||||
breq MotionLight_OnPacketReceived_report
|
breq MotionLight_OnPacketReceived_report
|
||||||
cpi r16, CPRO_CMD_VALUE_SET
|
cpi r16, CPRO_CMD_VALUE_SET
|
||||||
breq MotionLight_OnPacketReceived_set
|
breq MotionLight_OnPacketReceived_set
|
||||||
|
MotionLight_OnPacketReceived_clcRet:
|
||||||
clc ; unexpected msg
|
clc ; unexpected msg
|
||||||
ret
|
ret
|
||||||
MotionLight_OnPacketReceived_report:
|
MotionLight_OnPacketReceived_report:
|
||||||
rcall CPRO_ReadValue ; (none)
|
rcall CPRO_ReadValue ; (none)
|
||||||
|
mov r16, r18
|
||||||
|
or r16, r19
|
||||||
|
breq MotionLight_OnPacketReceived_clcRet ; zero value, ignore
|
||||||
rcall motionLightHasSource ; (r16, r24, Y)
|
rcall motionLightHasSource ; (r16, r24, Y)
|
||||||
brcs MotionLight_OnPacketReceived_turnOn
|
brcs MotionLight_OnPacketReceived_turnOn
|
||||||
ret
|
ret
|
||||||
|
|||||||
Reference in New Issue
Block a user