diff --git a/code/espurna/nofuss.ino b/code/espurna/nofuss.ino index af1163ce..f170ed7d 100644 --- a/code/espurna/nofuss.ino +++ b/code/espurna/nofuss.ino @@ -120,6 +120,9 @@ void nofussSetup() { #if WEB_SUPPORT wsSend_P(PSTR("{\"message\": 1}")); #endif + + // Disabling EEPROM rotation to prevent writing to EEPROM after the upgrade + eepromRotate(false); } if (code == NOFUSS_FILESYSTEM_UPDATE_ERROR) { @@ -147,7 +150,8 @@ void nofussSetup() { } if (code == NOFUSS_END) { - DEBUG_MSG_P(PSTR("[NoFUSS] End\n")); + DEBUG_MSG_P(PSTR("[NoFUSS] End\n")); + eepromRotate(true); } });