Fix migration error to filesystem settings (#19454)

This commit is contained in:
stefanbode 2023-09-04 21:36:45 +02:00 committed by GitHub
parent 434da4a62a
commit 1ea12583d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;