Skip to content

Commit

Permalink
Issue #157. Fix light status on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
xoseperez committed Aug 26, 2017
1 parent 5b57628 commit 64f1523
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/espurna/relay.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 64f1523

Please sign in to comment.