diff Common/Inc/settings.h @ 654:890440ab993a

Introduced new menu tab for addition CCR options: The Xtra menu tab was only used in dive mode before. The tab is now enabled in surface mode and provide access to scrubber timer functionality. To enables this infrastructure (structure, multilanguage strings etc.) have been added to the sourcecode.
author Ideenmodellierer
date Sun, 25 Apr 2021 20:41:19 +0200
parents f6212495f34f
children 1b995079c045
line wrap: on
line diff
--- a/Common/Inc/settings.h	Sun Apr 25 20:36:18 2021 +0200
+++ b/Common/Inc/settings.h	Sun Apr 25 20:41:19 2021 +0200
@@ -82,6 +82,14 @@
 } SensorSource;
 #define MAX_O2_SENSOR_SOURCE 	(2u)
 
+typedef enum
+{
+	SCRUB_TIMER_OFF = 0,
+	SCRUB_TIMER_MINUTES,
+	SCRUB_TIMER_PERCENT,
+	SCRUB_TIMER_END
+} ScrubTimerMode_e;
+
 /*	2015 Jan 30, hw, deco and travel added for MenuEditGas
 	* can be used for buehlmann, vpm, etc. later but be carefull
 	*	with current implemenation */
@@ -133,6 +141,8 @@
 	gasbit8_Type note;
 } SSetpointLine;
 
+
+
 /* SSettings
 	 * gas[0] and setpoint[0] are the special ones configurable during the dive
 	 */
@@ -253,6 +263,7 @@
 	uint8_t autoSetpoint;
 	uint16_t scrubTimerMax;
 	uint16_t scrubTimerCur;
+	uint8_t scrubTimerMode;
 } SSettings;
 
 typedef struct