From 120ba5cac2fd840ac2bde382aec95f0bcd727e15 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 12 Jan 2021 10:51:46 +0100 Subject: [PATCH] Add extra recovery option when linker changed --- tasmota/settings.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasmota/settings.ino b/tasmota/settings.ino index 518eb03d2..607cbdb44 100644 --- a/tasmota/settings.ino +++ b/tasmota/settings.ino @@ -205,14 +205,16 @@ uint32_t SETTINGS_LOCATION = FLASH_EEPROM_START; #endif // ESP32 -const uint8_t CFG_ROTATES = 7; // Number of flash sectors used (handles uploads) +const uint8_t CFG_ROTATES = 7; // Number of flash sectors used (handles uploads) uint32_t settings_location = FLASH_EEPROM_START; uint32_t settings_crc32 = 0; uint8_t *settings_buffer = nullptr; void SettingsInit(void) { - if (SETTINGS_LOCATION > 0xFA) { SETTINGS_LOCATION = 0xFA; } // Skip empty partition part + if (SETTINGS_LOCATION > 0xFA) { + SETTINGS_LOCATION = 0xFD; // Skip empty partition part + } } /********************************************************************************************/