Fix open/close to limits

Fix open/close to limits (#6516)
This commit is contained in:
Theo Arends 2019-09-30 19:27:54 +02:00
parent b850ac1231
commit d7d0316769
1 changed files with 1 additions and 0 deletions

View File

@ -315,6 +315,7 @@ void SetLatchingRelay(power_t lpower, uint32_t state)
void SetDevicePower(power_t rpower, uint32_t source)
{
ShowSource(source);
last_source = source;
if (POWER_ALL_ALWAYS_ON == Settings.poweronstate) { // All on and stay on
power = (1 << devices_present) -1;