Merge pull request #7477 from s-hadinger/fix_wakeup

Fix ``WakeUp <x>`` ignores provided value (#7473)
This commit is contained in:
Theo Arends 2020-01-10 20:59:54 +01:00 committed by GitHub
commit 3b69fb92db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

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

View File

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