mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-04-05 08:43:54 +02:00
@@ -7,6 +7,7 @@
|
||||
#include "defaults.h"
|
||||
#include <ArduinoJson.h>
|
||||
#include <LittleFS.h>
|
||||
#include <nvs_flash.h>
|
||||
|
||||
CONFIG_T config;
|
||||
|
||||
@@ -339,6 +340,14 @@ void ConfigurationClass::migrate()
|
||||
config.Dtu.Nrf.PaLevel = dtu["pa_level"];
|
||||
}
|
||||
|
||||
if (config.Cfg.Version < 0x00011a00) {
|
||||
// This migration fixes this issue: https://github.com/espressif/arduino-esp32/issues/8828
|
||||
// It occours when migrating from Core 2.0.9 to 2.0.14
|
||||
// which was done by updating ESP32 PlatformIO from 6.3.2 to 6.5.0
|
||||
nvs_flash_erase();
|
||||
nvs_flash_init();
|
||||
}
|
||||
|
||||
f.close();
|
||||
|
||||
config.Cfg.Version = CONFIG_VERSION;
|
||||
|
||||
Reference in New Issue
Block a user