From d2694df67cd97b53564f811c9de38ce4bdad5a5e Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Mon, 2 Dec 2024 23:57:06 +0100 Subject: [PATCH] avr: more work on motion activated light module. --- avr/modules/ma_light/main.asm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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