From 64f1523d02d8055a755da260feba05a86a77de68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sat, 26 Aug 2017 21:34:32 +0200 Subject: [PATCH] Issue #157. Fix light status on boot --- code/espurna/relay.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/code/espurna/relay.ino b/code/espurna/relay.ino index d2dd39ae..5bc38937 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -293,6 +293,7 @@ void relayRetrieve(bool invert) { unsigned char mask = invert ? ~EEPROM.read(EEPROM_RELAY_STATUS) : EEPROM.read(EEPROM_RELAY_STATUS); DEBUG_MSG_P(PSTR("[RELAY] Retrieving mask: %d\n"), mask); for (unsigned int id=0; id < _relays.size(); id++) { + _relays[id].scheduled = true; _relays[id].scheduledStatus = ((mask & bit) == bit); _relays[id].scheduledReport = true; bit += bit;