From 8e3fe4adaca3316e09395b7f19f1204ee0650e76 Mon Sep 17 00:00:00 2001 From: stefanbode Date: Thu, 17 Feb 2022 18:21:09 +0100 Subject: [PATCH 1/3] Ensure FUNC_INIT has correct RELAY state Address #14886 --- tasmota/support_tasmota.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/tasmota/support_tasmota.ino b/tasmota/support_tasmota.ino index 113ecfeee..e88da5bc9 100644 --- a/tasmota/support_tasmota.ino +++ b/tasmota/support_tasmota.ino @@ -409,6 +409,7 @@ void SetPowerOnState(void) } } TasmotaGlobal.blink_powersave = TasmotaGlobal.power; + RulesEvery50ms(); } void UpdateLedPowerAll() From 1235309d4803c65916161369e2d7df70072ee971 Mon Sep 17 00:00:00 2001 From: stefanbode Date: Thu, 17 Feb 2022 18:39:46 +0100 Subject: [PATCH 2/3] fix minimal firmware issue --- tasmota/support_tasmota.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/support_tasmota.ino b/tasmota/support_tasmota.ino index e88da5bc9..70fd03c18 100644 --- a/tasmota/support_tasmota.ino +++ b/tasmota/support_tasmota.ino @@ -409,7 +409,9 @@ void SetPowerOnState(void) } } TasmotaGlobal.blink_powersave = TasmotaGlobal.power; +#ifndef FIRMWARE_MINIMAL RulesEvery50ms(); +#endif } void UpdateLedPowerAll() From 77b9f9faaad2bca0f1eae334a2debc54089dfb9d Mon Sep 17 00:00:00 2001 From: stefanbode Date: Thu, 17 Feb 2022 20:01:03 +0100 Subject: [PATCH 3/3] changed compiler option to USE_RULES check --- tasmota/support_tasmota.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/support_tasmota.ino b/tasmota/support_tasmota.ino index 70fd03c18..676f005b9 100644 --- a/tasmota/support_tasmota.ino +++ b/tasmota/support_tasmota.ino @@ -409,7 +409,7 @@ void SetPowerOnState(void) } } TasmotaGlobal.blink_powersave = TasmotaGlobal.power; -#ifndef FIRMWARE_MINIMAL +#ifdef USE_RULES RulesEvery50ms(); #endif }