diff Discovery/Src/t3.c @ 924:4d98fb2a178e Evo_2_23

Bugfix real scrubber time decreased in sim mode: In the previous version the condition check for dive / simulation had been commented out causing the scrubber timer to be decreased during simulator usage. The problem has been fixed. In addition the scrubbertimer will now be maintained in simulator mode. In case the +5 minutes option is used the scrubber time is decreased by 5 minutes as well.
author Ideenmodellierer
date Wed, 13 Nov 2024 17:55:05 +0100
parents db92692c014f
children
line wrap: on
line diff
--- a/Discovery/Src/t3.c	Mon Nov 04 20:21:02 2024 +0100
+++ b/Discovery/Src/t3.c	Wed Nov 13 17:55:05 2024 +0100
@@ -1971,7 +1971,7 @@
 
 int printScrubberText(char *text, size_t size, SSettings *settings)
 {
-    int16_t currentTimerMinutes = settings->scrubberData[settings->scubberActiveId].TimerCur;
+    int16_t currentTimerMinutes = stateUsed->scrubberDataDive[settings->scubberActiveId].TimerCur;
     char colour = '\020';
     if (currentTimerMinutes <= 0) {
         colour = '\025';