avr: more work on motion activated light module.

This commit is contained in:
Martin Preuss
2024-12-02 23:57:06 +01:00
parent 2270163837
commit d2694df67c

View File

@@ -61,13 +61,7 @@ MotionLight_Init:
sts motionLightOnTime+1, r16
rcall motionLightReadConfFromEeprom
; debug
; ldi r16, 0x01
; sts motionLightSources+MOTIONLIGHT_SOURCE_OFFS_ADDR, r16
; ldi r16, 0x07
; sts motionLightSources+MOTIONLIGHT_SOURCE_OFFS_VALUEID, r16
ret
; @end
@@ -156,6 +150,8 @@ MotionLight_OnPacketReceived_setRGBW:
sts motionLightColor+1, r19
sts motionLightColor+2, r20
sts motionLightColor+3, r21
rcall motionLightStartTimer ; immediately ON with new color
rcall motionLightTurnOn
rjmp MotionLight_OnPacketReceived_sendAck
MotionLight_OnPacketReceived_setOnTime:
sts motionLightOnTime, r18