Mercurial > public > ostc4
diff Discovery/Src/settings.c @ 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 | 9513a92b293b |
line wrap: on
line diff
--- a/Discovery/Src/settings.c Sun Apr 25 20:36:18 2021 +0200 +++ b/Discovery/Src/settings.c Sun Apr 25 20:41:19 2021 +0200 @@ -326,6 +326,7 @@ .autoSetpoint = 0, .scrubTimerMax = 0, .scrubTimerCur = 0, + .scrubTimerMode = SCRUB_TIMER_OFF, }; /* Private function prototypes -----------------------------------------------*/ @@ -1455,7 +1456,11 @@ Settings.scrubTimerCur = 0; corrections++; } - + if(Settings.scrubTimerMode > SCRUB_TIMER_END) + { + Settings.scrubTimerMode = SCRUB_TIMER_OFF; + corrections++; + } if(corrections > 255) return 255; else