Force settings upgrade on PinecilV2

Fix forced settings upgrade on Pinecilv2
This commit is contained in:
Ben V. Brown
2024-06-01 16:37:52 +10:00
parent 0f7e0740a7
commit c6dcd85c3a
2 changed files with 9 additions and 3 deletions

View File

@@ -135,9 +135,9 @@ bool sanitiseSettings() {
// For all settings, need to ensure settings are in a valid range
// First for any not know about due to array growth, reset them and update the length value
bool dirty = false;
if (systemSettings.versionMarker != 0x55AA) {
if (systemSettings.versionMarker != SETTINGSVERSION) {
memset((void *)&systemSettings, 0xFF, sizeof(systemSettings));
systemSettings.versionMarker = 0x55AA;
systemSettings.versionMarker = SETTINGSVERSION;
dirty = true;
}
if (systemSettings.padding != 0xFFFFFFFF) {