Browse Source

Write back relay bit mask if RELAY_MODE_TOOGLE

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

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

@ -221,7 +221,8 @@ void relayRetrieve(bool invert) {
bit += bit; bit += bit;
} }
if (invert) { if (invert) {
relaySave();
EEPROM.write(0, mask);
EEPROM.commit();
} }
recursive = false; recursive = false;
} }


Loading…
Cancel
Save