comparison Discovery/Src/tMenuEditXtra.c @ 816:c4ee952b9425

Fix a bug that disables arbitrary menu lines in dive mode if lines are disabled / inactive in surface mode. (mikeller)
author heinrichsweikamp
date Sun, 10 Sep 2023 11:46:45 +0200
parents 4c41d9a18c7f
children ffb1036c27c2
comparison
equal deleted inserted replaced
815:ce8f71217f45 816:c4ee952b9425
177 177
178 static void openEdit_CCRModeSensorOrFixedSP(void) 178 static void openEdit_CCRModeSensorOrFixedSP(void)
179 { 179 {
180 SSettings *pSettings = settingsGetPointer(); 180 SSettings *pSettings = settingsGetPointer();
181 181
182 if(pSettings->CCR_Mode == CCRMODE_Sensors) 182 if(pSettings->CCR_Mode == CCRMODE_Sensors) {
183 {
184 pSettings->CCR_Mode = CCRMODE_FixedSetpoint; 183 pSettings->CCR_Mode = CCRMODE_FixedSetpoint;
185 disableLine(StMXTRA_O2_Fallback); 184 } else {
186 }
187 else
188 {
189 pSettings->CCR_Mode = CCRMODE_Sensors; 185 pSettings->CCR_Mode = CCRMODE_Sensors;
190 enableLine(StMXTRA_O2_Fallback);
191 } 186 }
192 187
193 exitEditWithUpdate(); 188 exitEditWithUpdate();
194 } 189 }
195 190