From b86f58befe173590438c0aa427837fe872425d7d Mon Sep 17 00:00:00 2001 From: Def3nder Date: Mon, 2 Mar 2020 12:41:14 +0100 Subject: [PATCH] IR remotes can disable NightLight with "OFF" (#745) * IR can disable Nightlight with "OFF" --- wled00/wled08_led.ino | 1 - wled00/wled20_ir.ino | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/wled08_led.ino b/wled00/wled08_led.ino index f6e8b4ee..63009f98 100644 --- a/wled00/wled08_led.ino +++ b/wled00/wled08_led.ino @@ -72,7 +72,6 @@ bool colorChanged() { if (col[i] != colIT[i]) return true; if (colSec[i] != colSecIT[i]) return true; - //if (col[i] != colNlT[i]) return true; (this effectively made the ESP send out sync packets every time colorUpdated() is called, even if nothing changed) } if (bri != briIT) return true; return false; diff --git a/wled00/wled20_ir.ino b/wled00/wled20_ir.ino index c65a4c58..3cd604b2 100644 --- a/wled00/wled20_ir.ino +++ b/wled00/wled20_ir.ino @@ -91,6 +91,7 @@ void decodeIR(uint32_t code) default: return; } } + if (nightlightActive && bri == 0) nightlightActive = false; colorUpdated(NOTIFIER_CALL_MODE_BUTTON); //for notifier, IR is considered a button input //code <= 0xF70000 also invalid }