Mercurial > public > ostc4
diff Discovery/Src/tMenuEdit.c @ 774:6169309d6eb9
more menu items for the compass menu: Delete bearing, and reset to land based bearing. I have also re-enabled the real time bearing display in the menu - makes it easier to set the correct bearing. (mikeller)
author | heinrichsweikamp |
---|---|
date | Wed, 10 May 2023 16:25:39 +0200 |
parents | 190e5814b2f5 |
children | 45b8f3c2acce |
line wrap: on
line diff
--- a/Discovery/Src/tMenuEdit.c Wed May 10 16:24:57 2023 +0200 +++ b/Discovery/Src/tMenuEdit.c Wed May 10 16:25:39 2023 +0200 @@ -212,22 +212,20 @@ case (StMHARD3_Sensor_Detect): case (StMHARD3_Sensor_Info): refreshFct = refresh_O2Sensors; break; - case (StMHARD2_Compass_SetCourse & MaskFieldDigit): refreshFct = refresh_CompassEdit; - break; - /* case (StMXTRA_CompassHeading & MaskFieldDigit): StMXTRA_CompassHeading and StMXTRA_PSCR_O2_Drop share the same menu ID => select function based on divemode */ + case (StMHARD2_Compass_SetCourse & MaskFieldDigit): + refreshFct = refresh_CompassEdit; + + break; + case (StMXTRA_CompassHeading & MaskFieldDigit): + refreshFct = refresh_CompassHeading; + + break; case (StMXTRA_PSCR_O2_Drop & MaskFieldDigit): - if(actual_menu_content == MENU_SURFACE) - { - if(settingsGetPointer()->dive_mode != DIVEMODE_PSCR) /* workaround because PSCR mode is set dynamic */ - { - refreshFct = refresh_CO2Data; - } - } - else - { - refreshFct = refresh_CompassHeading; - } - break; + if (settingsGetPointer()->dive_mode != DIVEMODE_PSCR) { /* workaround because PSCR mode is set dynamic */ + refreshFct = refresh_CO2Data; + } + + break; case (StMXTRA_CO2_Sensor & MaskFieldDigit): refreshFct = refresh_CO2Data; break; case (StMSYS4_Info & MaskFieldDigit): refreshFct = &refresh_InformationPage;