diff --git a/code/espurna/relay.ino b/code/espurna/relay.ino index 433e3610..65fe03d9 100644 --- a/code/espurna/relay.ino +++ b/code/espurna/relay.ino @@ -221,7 +221,8 @@ void relayRetrieve(bool invert) { bit += bit; } if (invert) { - relaySave(); + EEPROM.write(0, mask); + EEPROM.commit(); } recursive = false; }