diff Discovery/Src/t3.c @ 710:8adf9b8fc7fa

Extension scrubber time: In previous version only one scrubber timer was available. After movement of scruvver timer menu menu space became available allowing to upgrade the functionality to support two scrubbers. To make it easier to identify combination ID to used scrubber the date of the last usage of the scrubber timer has been added.
author Ideenmodellierer
date Tue, 08 Nov 2022 21:16:17 +0100
parents 1b995079c045
children 47a9ba771119
line wrap: on
line diff
--- a/Discovery/Src/t3.c	Tue Nov 08 21:13:14 2022 +0100
+++ b/Discovery/Src/t3.c	Tue Nov 08 21:16:17 2022 +0100
@@ -1301,11 +1301,11 @@
             	textpointer = 0;
                 if(settingsGetPointer()->scrubTimerMode == SCRUB_TIMER_MINUTES)
                 {
-                	textpointer += snprintf(&text[textpointer],10,"\020\002%3u'", pSettings->scrubTimerCur);
+                	textpointer += snprintf(&text[textpointer],10,"\020\002%3u'",  pSettings->scrubberData[pSettings->scubberActiveId].TimerCur);
                 }
                 else
                 {
-                	textpointer += snprintf(&text[textpointer],20,"\020\002%u\016\016%%\017", (uint16_t)(pSettings->scrubTimerCur * 100 / pSettings->scrubTimerMax));
+                	textpointer += snprintf(&text[textpointer],20,"\020\002%u\016\016%%\017", (uint16_t)(pSettings->scrubberData[pSettings->scubberActiveId].TimerCur * 100 / pSettings->scrubberData[pSettings->scubberActiveId].TimerMax));
                 }
                 GFX_write_string(&FontT105,tXc1,text,1);
             }