Skip to content

Commit

Permalink
IR remotes can disable NightLight with "OFF" (Aircoookie#745)
Browse files Browse the repository at this point in the history
* IR can disable Nightlight with "OFF"
  • Loading branch information
Def3nder authored Mar 2, 2020
1 parent b804101 commit b86f58b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion wled00/wled08_led.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions wled00/wled20_ir.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b86f58b

Please sign in to comment.