From e2fdf18625eee84e34b022c933b60bd4436e44c5 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 21 Jul 2024 12:23:10 +0200 Subject: [PATCH] Fix CalVer to SemVer updates --- tasmota/tasmota_support/settings.ino | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasmota/tasmota_support/settings.ino b/tasmota/tasmota_support/settings.ino index 9b002f26c..aa1457983 100644 --- a/tasmota/tasmota_support/settings.ino +++ b/tasmota/tasmota_support/settings.ino @@ -1726,6 +1726,13 @@ void SettingsDelta(void) { if (Settings->version < 0x0A010003) { // 10.1.0.3 Settings->sserial_config = Settings->serial_config; } + + // Change CalVer (2022.01.1-4 = 0x14160101) to SemVer (10.1.0.4-7 = 0x0A010004) + uint32_t version2022 = Settings->version & 0x00FF0000; + if (0x00160000 == version2022) { // Version x.22.x.x is not likely to appear + Settings->version = 0x0A010005; // Choose this as 0x0A010006 has a change following + } + if (Settings->version < 0x0A010006) { // 10.1.0.6 Settings->web_time_start = 0; Settings->web_time_end = 0;