fix default power state logic invoked even if already serviced by a driver

This commit is contained in:
Peter Halicky 2020-05-26 18:20:46 +02:00
parent 054850ef0b
commit f80d2ede3a
1 changed files with 1 additions and 1 deletions

View File

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