changeset 673:d7c5d592076b Betatest

Show 98% in case of Oxygen as the calibrating gas See #define O2_CALIB_FRACTION_O2 (0.98F)
author heinrichsweikamp
date Wed, 30 Mar 2022 18:00:21 +0200
parents 12d029f38430
children 8ebf7a27c189
files Discovery/Inc/configuration.h Discovery/Src/tMenuEditHardware.c
diffstat 2 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Inc/configuration.h	Sat Mar 12 14:57:54 2022 +0100
+++ b/Discovery/Inc/configuration.h	Wed Mar 30 18:00:21 2022 +0200
@@ -24,7 +24,6 @@
 ///     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 //////////////////////////////////////////////////////////////////////////////
 
-
 #ifndef CONFIGURATION_HEADER
 #define CONFIGURATION_HEADER
 
@@ -50,24 +49,24 @@
 /* #define HAVE_DEBUG_VIEW */
 
 /* Enable to have access to the motion control selection menu */
-/* #define ENABLE_MOTION_CONTROL */
+#define ENABLE_MOTION_CONTROL
 
 /* Enable to have option to hide not needed gases from dive views */
 /* #define ENABLE_UNUSED_GAS_HIDING */
 
 /* Enable to have the new T3 profile view available */
-/* #define ENABLE_T3_PROFILE_VIEW */
+#define ENABLE_T3_PROFILE_VIEW
 
 /* Enable to have PPO2 adjustments in T3 sensor view during dive simulation */
 /* #define ENABLE_T3_PPO_SIM */
 
 /* Enable to have PSCR functionality available */
-/* #define ENABLE_PSCR_MODE */
+#define ENABLE_PSCR_MODE
 
 /* Enable to have CO2 sensor functionality available */
 /* #define ENABLE_CO2_SUPPORT */
 
 /* Enable if you are using sensors with a voltage range 8..16 mV at surface / air level */
-/* #define ENABLE_ALTERNATIVE_SENSORTYP */
+#define ENABLE_ALTERNATIVE_SENSORTYP
 
 #endif
--- a/Discovery/Src/tMenuEditHardware.c	Sat Mar 12 14:57:54 2022 +0100
+++ b/Discovery/Src/tMenuEditHardware.c	Wed Mar 30 18:00:21 2022 +0200
@@ -383,7 +383,7 @@
         write_label_fix(   30, 800, ME_Y_LINE4, &FontT48, TXT2BYTE_O2Calib);
         write_label_var(  400, 800, ME_Y_LINE4, &FontT48, "\016\016 %\017");
 
-        write_field_toggle(StMHARD3_O2_Calibrate,	400, 800, ME_Y_LINE4, &FontT48, "", 21, 100);
+        write_field_toggle(StMHARD3_O2_Calibrate,	400, 800, ME_Y_LINE4, &FontT48, "", 21, 98);
     }
 
     text[0] = TXT_Fallback;
@@ -517,7 +517,7 @@
     {
 		if(O2_calib_gas == 21)
 		{
-			O2_calib_gas = 100;
+			O2_calib_gas = 98;
 		}
 		else
 		{