Fix ``WakeUp <x>`` ignores provided value (#7473)

This commit is contained in:
Hadinger 2020-01-10 20:54:13 +01:00
parent 2dde0329ed
commit be85d3a060
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
- Add support for gzipped binaries
- Update IRremoteESP8266 lib updated to v2.7.2
- Fix ``WakeUp <x>`` ignores provided value (#7473)
### 8.1.0.2 20191230

View File

@ -2325,7 +2325,7 @@ void CmndScheme(void)
void CmndWakeup(void)
{
if ((XdrvMailbox.payload >= 0) && (XdrvMailbox.payload <= 100)) {
Settings.light_dimmer = XdrvMailbox.payload;
light_controller.changeDimmer(XdrvMailbox.payload);
}
Light.wakeup_active = 3;
Settings.light_scheme = LS_WAKEUP;