diff Discovery/Src/tMenuEdit.c @ 662:1b995079c045 Betatest

PSCR Mode
author heinrichs weikamp
date Tue, 14 Dec 2021 15:36:10 +0100
parents fb5bb04ad914
children e81afd727993
line wrap: on
line diff
--- a/Discovery/Src/tMenuEdit.c	Mon Nov 01 12:39:34 2021 +0100
+++ b/Discovery/Src/tMenuEdit.c	Tue Dec 14 15:36:10 2021 +0100
@@ -213,6 +213,13 @@
 	 	 	 break;
 	 	 case (StMXTRA_CompassHeading & MaskFieldDigit):  refreshFct = refresh_CompassHeading;
 	 	 	 break;
+	 	 case (StMXTRA_PSCR_O2_Drop & MaskFieldDigit): 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;
 	 	 	 break;
 	 	 case (StMPLAN5_ExitResult & MaskFieldDigit): refreshFct = refresh_PlanResult;
@@ -256,6 +263,7 @@
 {
     if(WriteSettings)
     {
+    	reset_SettingWarning();
         GFX_logoAutoOff();
         ext_flash_write_settings(0);
         WriteSettings = 0;