comparison 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
comparison
equal deleted inserted replaced
757:39ff186b6f98 758:b6d8a6fbf4fd
75 75
76 #define MAX_COMPASS_COMP (2u) 76 #define MAX_COMPASS_COMP (2u)
77 #define MAX_VIEWPORT_MODE (0x7F) 77 #define MAX_VIEWPORT_MODE (0x7F)
78 78
79 #define MAX_SCRUBBER_TIME (999u) 79 #define MAX_SCRUBBER_TIME (999u)
80 #define MIN_SCRUBBER_TIME -99
80 #define MIN_PPO2_SP_CBAR (40u) 81 #define MIN_PPO2_SP_CBAR (40u)
81 82
82 #define PSCR_MAX_O2_DROP (15u) 83 #define PSCR_MAX_O2_DROP (15u)
83 #define PSCR_MIN_LUNG_RATIO (5u) 84 #define PSCR_MIN_LUNG_RATIO (5u)
84 #define PSCR_MAX_LUNG_RATIO (20u) 85 #define PSCR_MAX_LUNG_RATIO (20u)
161 162
162 163
163 typedef struct 164 typedef struct
164 { 165 {
165 uint16_t TimerMax; 166 uint16_t TimerMax;
166 uint16_t TimerCur; 167 int16_t TimerCur;
167 RTC_DateTypeDef lastDive; 168 RTC_DateTypeDef lastDive;
168 } SScrubberData; 169 } SScrubberData;
169 170
170 171
171 /* SSettings 172 /* SSettings