From 0196c70a40961e06a1f63fa6f79bbb564cb7b356 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 21 Apr 2020 15:53:45 +0200 Subject: [PATCH] Fix initial config version --- tasmota/settings.ino | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasmota/settings.ino b/tasmota/settings.ino index c6cc355b4..6c299ff06 100644 --- a/tasmota/settings.ino +++ b/tasmota/settings.ino @@ -713,6 +713,13 @@ void SettingsDefaultSet2(void) { memset((char*)&Settings +16, 0x00, sizeof(Settings) -16); +#ifdef ESP8266 +// Settings.config_version = 0; // ESP8266 (Has been 0 for long time) +#endif // ESP8266 +#ifdef ESP32 + Settings.config_version = 1; // ESP32 +#endif // ESP32 + Settings.flag.stop_flash_rotate = APP_FLASH_CYCLE; Settings.flag.global_state = APP_ENABLE_LEDLINK; Settings.flag3.sleep_normal = APP_NORMAL_SLEEP;