Browse Source

[Fix] Disabling EEPROM Rotate before updating upgrading firmware with

nofuss
alexa
Arihant Daga 5 years ago
parent
commit
9e817a0b5d
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      code/espurna/nofuss.ino

+ 5
- 1
code/espurna/nofuss.ino View File

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


Loading…
Cancel
Save