diff Discovery/Src/settings.c @ 792:25103f5c7e29

Avoid a configuration warning after the firmware upgrade by disabling automatic setpoint switching. This makes sure the user's automatic setpoint configuration is not overwritten by the validity checks if the settings are not in the correct spots for the new configuration. Users will have to manually re-create the automatic setpoint switching configuration in the new format; Add a checkbox to 'SPdeco' in the menu - this will make it obvious to users that this setpoint can be disabled. (mikeller)
author heinrichsweikamp
date Sat, 05 Aug 2023 11:52:08 +0200
parents 4abfb8a2a435
children 75ace7af8212
line wrap: on
line diff
--- a/Discovery/Src/settings.c	Wed Aug 02 08:41:03 2023 +0200
+++ b/Discovery/Src/settings.c	Sat Aug 05 11:52:08 2023 +0200
@@ -538,6 +538,9 @@
     case 0xFFFF0025:
         pSettings->compassDeclinationDeg = pStandard->compassDeclinationDeg;
         pSettings->delaySetpointLow = pStandard->delaySetpointLow;
+        // Disable auto setpoint to avoid a configuration warning being triggered by the new auto setpoint validation
+        // This ensures that users don't lose setpoint information if it is not in the right spot for the new configuration
+        pSettings->autoSetpoint = false;
 
     	// no break;
     default: