Browse Source

Issue #157. Fix light status on boot

fastled
Xose Pérez 7 years ago
parent
commit
64f1523d02
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      code/espurna/relay.ino

+ 1
- 0
code/espurna/relay.ino View File

@ -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;


Loading…
Cancel
Save