Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
791:92ac192e98d5 | 792:25103f5c7e29 |
---|---|
536 case 0xFFFF0024: pSettings->buttonLockActive = 0; | 536 case 0xFFFF0024: pSettings->buttonLockActive = 0; |
537 // no break; | 537 // no break; |
538 case 0xFFFF0025: | 538 case 0xFFFF0025: |
539 pSettings->compassDeclinationDeg = pStandard->compassDeclinationDeg; | 539 pSettings->compassDeclinationDeg = pStandard->compassDeclinationDeg; |
540 pSettings->delaySetpointLow = pStandard->delaySetpointLow; | 540 pSettings->delaySetpointLow = pStandard->delaySetpointLow; |
541 // Disable auto setpoint to avoid a configuration warning being triggered by the new auto setpoint validation | |
542 // This ensures that users don't lose setpoint information if it is not in the right spot for the new configuration | |
543 pSettings->autoSetpoint = false; | |
541 | 544 |
542 // no break; | 545 // no break; |
543 default: | 546 default: |
544 pSettings->header = pStandard->header; | 547 pSettings->header = pStandard->header; |
545 break; // no break before!! | 548 break; // no break before!! |