Merge pull request #8553 from phjr/fix-device-power-on-esp8266

fix default power state logic invoked even if already serviced by a d…
This commit is contained in:
Theo Arends 2020-05-26 18:31:32 +02:00 committed by GitHub
commit 32a39b828c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -225,8 +225,8 @@ void SetDevicePower(power_t rpower, uint32_t source)
else if (EXS_RELAY == my_module_type) {
SetLatchingRelay(rpower, 1);
}
else
#endif // ESP8266
else
{
for (uint32_t i = 0; i < devices_present; i++) {
power_t state = rpower &1;