comparison 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
comparison
equal deleted inserted replaced
709:c799151670d5 710:8adf9b8fc7fa
1299 GFX_write_string(&FontT42,tXc1,text,0); 1299 GFX_write_string(&FontT42,tXc1,text,0);
1300 1300
1301 textpointer = 0; 1301 textpointer = 0;
1302 if(settingsGetPointer()->scrubTimerMode == SCRUB_TIMER_MINUTES) 1302 if(settingsGetPointer()->scrubTimerMode == SCRUB_TIMER_MINUTES)
1303 { 1303 {
1304 textpointer += snprintf(&text[textpointer],10,"\020\002%3u'", pSettings->scrubTimerCur); 1304 textpointer += snprintf(&text[textpointer],10,"\020\002%3u'", pSettings->scrubberData[pSettings->scubberActiveId].TimerCur);
1305 } 1305 }
1306 else 1306 else
1307 { 1307 {
1308 textpointer += snprintf(&text[textpointer],20,"\020\002%u\016\016%%\017", (uint16_t)(pSettings->scrubTimerCur * 100 / pSettings->scrubTimerMax)); 1308 textpointer += snprintf(&text[textpointer],20,"\020\002%u\016\016%%\017", (uint16_t)(pSettings->scrubberData[pSettings->scubberActiveId].TimerCur * 100 / pSettings->scrubberData[pSettings->scubberActiveId].TimerMax));
1309 } 1309 }
1310 GFX_write_string(&FontT105,tXc1,text,1); 1310 GFX_write_string(&FontT105,tXc1,text,1);
1311 } 1311 }
1312 } 1312 }
1313 break; 1313 break;