Mercurial > public > ostc4
diff 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 |
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditXtra.c Sun Sep 03 18:03:49 2023 +0200 +++ b/Discovery/Src/tMenuEditXtra.c Sun Sep 10 11:46:45 2023 +0200 @@ -179,15 +179,10 @@ { SSettings *pSettings = settingsGetPointer(); - if(pSettings->CCR_Mode == CCRMODE_Sensors) - { + if(pSettings->CCR_Mode == CCRMODE_Sensors) { pSettings->CCR_Mode = CCRMODE_FixedSetpoint; - disableLine(StMXTRA_O2_Fallback); - } - else - { + } else { pSettings->CCR_Mode = CCRMODE_Sensors; - enableLine(StMXTRA_O2_Fallback); } exitEditWithUpdate();