From 9e817a0b5de1ce2821bb4775bcf4bd7ae6bdbf2c Mon Sep 17 00:00:00 2001 From: Arihant Daga Date: Fri, 7 Dec 2018 11:40:29 +0530 Subject: [PATCH] [Fix] Disabling EEPROM Rotate before updating upgrading firmware with nofuss --- code/espurna/nofuss.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } });