Mercurial > public > ostc4
changeset 856:af035b883382 Evo_2_23
Do not show SP tab if PSCR mode is active:
In the previous version the setpoint tab was shown even if operation mode PSCR was selected. SPs do not matter for PSCR operation and will not be shown in the new version.
author | Ideenmodellierer |
---|---|
date | Sun, 05 May 2024 17:20:56 +0200 |
parents | 012f94ec2fe0 |
children | ba1aebc6d5af |
files | Discovery/Src/tMenu.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Discovery/Src/tMenu.c Mon Mar 18 21:52:25 2024 +0100 +++ b/Discovery/Src/tMenu.c Sun May 05 17:20:56 2024 +0200 @@ -598,7 +598,10 @@ if((isLoopMode(pSettings->dive_mode)) || (stateUsed->diveSettings.ccrOption == 1)) { tM_add(StMCG); - tM_add(StMSP); + if((stateUsed->diveSettings.diveMode != DIVEMODE_PSCR) || (actual_menu_content != MENU_SURFACE)) + { + tM_add(StMSP); + } if (actual_menu_content == MENU_SURFACE) /* StMOG is now accessed using StMCG in CCR mode*/ { tM_add(StMXTRA);