diff --git a/avr/modules/ma_light/main.asm b/avr/modules/ma_light/main.asm index d398ce6..fb66b5a 100644 --- a/avr/modules/ma_light/main.asm +++ b/avr/modules/ma_light/main.asm @@ -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