Browse Source

Merge pull request #1398 from arihantdaga/fix-nofuss-eeprom

[Fix] Disabling EEPROM Rotate before updating upgrading firmware with
alexa
Xose Pérez 6 years ago
committed by GitHub
parent
commit
3f35ddcaf8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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 #if WEB_SUPPORT
wsSend_P(PSTR("{\"message\": 1}")); wsSend_P(PSTR("{\"message\": 1}"));
#endif #endif
// Disabling EEPROM rotation to prevent writing to EEPROM after the upgrade
eepromRotate(false);
} }
if (code == NOFUSS_FILESYSTEM_UPDATE_ERROR) { if (code == NOFUSS_FILESYSTEM_UPDATE_ERROR) {
@ -147,7 +150,8 @@ void nofussSetup() {
} }
if (code == NOFUSS_END) { if (code == NOFUSS_END) {
DEBUG_MSG_P(PSTR("[NoFUSS] End\n"));
DEBUG_MSG_P(PSTR("[NoFUSS] End\n"));
eepromRotate(true);
} }
}); });


Loading…
Cancel
Save