diff Common/Inc/settings.h @ 758:b6d8a6fbf4fd

- Colours for scrubber display when time remaining falls below a threshold value - Display negative values when time is up and diving continues; - count down remaining scrubber time only when the dive computer is not set to bailout - after all, there is not much point in counting down time if the diver is not breathing through the scrubber.
author heinrichsweikamp
date Wed, 15 Mar 2023 09:18:07 +0100
parents 6a35e2e97bfb
children da8126d5ea9f
line wrap: on
line diff
--- a/Common/Inc/settings.h	Tue Mar 07 22:14:20 2023 +0100
+++ b/Common/Inc/settings.h	Wed Mar 15 09:18:07 2023 +0100
@@ -77,6 +77,7 @@
 #define MAX_VIEWPORT_MODE 		(0x7F)
 
 #define MAX_SCRUBBER_TIME 		(999u)
+#define MIN_SCRUBBER_TIME       -99
 #define MIN_PPO2_SP_CBAR		(40u)
 
 #define PSCR_MAX_O2_DROP		(15u)
@@ -163,7 +164,7 @@
 typedef struct
 {
 	uint16_t TimerMax;
-	uint16_t TimerCur;
+	int16_t TimerCur;
 	RTC_DateTypeDef lastDive;
 } SScrubberData;