From 1ea12583d1c9c9947013a94b05ecbf5cdd9726c8 Mon Sep 17 00:00:00 2001 From: stefanbode Date: Mon, 4 Sep 2023 21:36:45 +0200 Subject: [PATCH] Fix migration error to filesystem settings (#19454) --- tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino b/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino index ae6f9603c6dd..aa643d58dc53 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino @@ -312,7 +312,7 @@ void ShutterSettingsLoad(bool erase) { void ShutterSettingsSave(void) { // Called from FUNC_SAVE_SETTINGS every SaveData second and at restart uint32_t crc32 = GetCfgCrc32((uint8_t*)&ShutterSettings +4, sizeof(ShutterSettings) -4); // Skip crc32 - if (crc32 != ShutterSettings.crc32) { + if (crc32 != ShutterSettings.crc32 && ShutterSettings.version > 0) { // Try to save file /.drvset027 ShutterSettings.crc32 = crc32;