From a1ff02933501b10d359b103466481e8863063977 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 16 Nov 2018 09:18:40 +0100 Subject: [PATCH] Revert "Quietly allow settings update" This reverts commit 999f0a3f920223c5078f8c30f1a5c56a255bbf39. --- sonoff/settings.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sonoff/settings.ino b/sonoff/settings.ino index 44d1e961f..38e9bb3f3 100644 --- a/sonoff/settings.ino +++ b/sonoff/settings.ino @@ -257,6 +257,7 @@ void SettingsSave(byte rotate) * stop_flash_rotate 0 = Allow flash slot rotation (SetOption12 0) * stop_flash_rotate 1 = Allow only eeprom flash slot use (SetOption12 1) */ +#ifndef BE_MINIMAL if ((GetSettingsCrc() != settings_crc) || rotate) { if (1 == rotate) { // Use eeprom flash slot only and disable flash rotate from now on (upgrade) stop_flash_rotate = 1; @@ -289,6 +290,7 @@ void SettingsSave(byte rotate) settings_crc = Settings.cfg_crc; } +#endif // BE_MINIMAL RtcSettingsSave(); } @@ -317,8 +319,10 @@ void SettingsLoad(void) snprintf_P(log_data, sizeof(log_data), PSTR(D_LOG_CONFIG D_LOADED_FROM_FLASH_AT " %X, " D_COUNT " %d"), settings_location, Settings.save_flag); AddLog(LOG_LEVEL_DEBUG); +#ifndef BE_MINIMAL if (bad_crc || (Settings.cfg_holder != (uint16_t)CFG_HOLDER)) { SettingsDefault(); } settings_crc = GetSettingsCrc(); +#endif // BE_MINIMAL RtcSettingsLoad(); }