From d7d03167693df3dbd227a2e74bb11d9c3ca1386f Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 30 Sep 2019 19:27:54 +0200 Subject: [PATCH] Fix open/close to limits Fix open/close to limits (#6516) --- sonoff/sonoff.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/sonoff/sonoff.ino b/sonoff/sonoff.ino index 07862a9a5..8f0627b1b 100755 --- a/sonoff/sonoff.ino +++ b/sonoff/sonoff.ino @@ -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;