Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
773:2c243233c999 | 774:6169309d6eb9 |
---|---|
210 case (StMHARD3_O2_Sensor1 & MaskFieldDigit): | 210 case (StMHARD3_O2_Sensor1 & MaskFieldDigit): |
211 case (StMHARD3_O2_Calibrate): | 211 case (StMHARD3_O2_Calibrate): |
212 case (StMHARD3_Sensor_Detect): | 212 case (StMHARD3_Sensor_Detect): |
213 case (StMHARD3_Sensor_Info): refreshFct = refresh_O2Sensors; | 213 case (StMHARD3_Sensor_Info): refreshFct = refresh_O2Sensors; |
214 break; | 214 break; |
215 case (StMHARD2_Compass_SetCourse & MaskFieldDigit): refreshFct = refresh_CompassEdit; | 215 case (StMHARD2_Compass_SetCourse & MaskFieldDigit): |
216 break; | 216 refreshFct = refresh_CompassEdit; |
217 /* case (StMXTRA_CompassHeading & MaskFieldDigit): StMXTRA_CompassHeading and StMXTRA_PSCR_O2_Drop share the same menu ID => select function based on divemode */ | 217 |
218 break; | |
219 case (StMXTRA_CompassHeading & MaskFieldDigit): | |
220 refreshFct = refresh_CompassHeading; | |
221 | |
222 break; | |
218 case (StMXTRA_PSCR_O2_Drop & MaskFieldDigit): | 223 case (StMXTRA_PSCR_O2_Drop & MaskFieldDigit): |
219 if(actual_menu_content == MENU_SURFACE) | 224 if (settingsGetPointer()->dive_mode != DIVEMODE_PSCR) { /* workaround because PSCR mode is set dynamic */ |
220 { | 225 refreshFct = refresh_CO2Data; |
221 if(settingsGetPointer()->dive_mode != DIVEMODE_PSCR) /* workaround because PSCR mode is set dynamic */ | 226 } |
222 { | 227 |
223 refreshFct = refresh_CO2Data; | 228 break; |
224 } | |
225 } | |
226 else | |
227 { | |
228 refreshFct = refresh_CompassHeading; | |
229 } | |
230 break; | |
231 case (StMXTRA_CO2_Sensor & MaskFieldDigit): refreshFct = refresh_CO2Data; | 229 case (StMXTRA_CO2_Sensor & MaskFieldDigit): refreshFct = refresh_CO2Data; |
232 break; | 230 break; |
233 case (StMSYS4_Info & MaskFieldDigit): refreshFct = &refresh_InformationPage; | 231 case (StMSYS4_Info & MaskFieldDigit): refreshFct = &refresh_InformationPage; |
234 break; | 232 break; |
235 case (StMPLAN5_ExitResult & MaskFieldDigit): refreshFct = refresh_PlanResult; | 233 case (StMPLAN5_ExitResult & MaskFieldDigit): refreshFct = refresh_PlanResult; |