Mercurial > public > ostc4
diff Discovery/Src/tCCR.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 | dd5db6e2c9a4 |
line wrap: on
line diff
--- a/Discovery/Src/tCCR.c Tue Nov 08 21:13:14 2022 +0100 +++ b/Discovery/Src/tCCR.c Tue Nov 08 21:16:17 2022 +0100 @@ -337,16 +337,17 @@ } /* decrease scrubber timer only in real dive mode */ - if((pSettings->scrubTimerMode != SCRUB_TIMER_OFF) && (isLoopMode(pSettings->dive_mode)) && (stateUsed->mode == MODE_DIVE) && (stateUsed == stateRealGetPointer())) + if((pSettings->scrubTimerMode != SCRUB_TIMER_OFF) && (isLoopMode(pSettings->dive_mode)) && (stateUsed->mode == MODE_DIVE)) // && (stateUsed == stateRealGetPointer())) { ScrubberTimeoutCount++; if(ScrubberTimeoutCount >= 600) /* resolution is minutes */ { ScrubberTimeoutCount = 0; - if(pSettings->scrubTimerCur > 0) + if(pSettings->scrubberData[pSettings->scubberActiveId].TimerCur > 0) { - pSettings->scrubTimerCur--; + pSettings->scrubberData[pSettings->scubberActiveId].TimerCur--; } + translateDate(stateUsed->lifeData.dateBinaryFormat, &pSettings->scrubberData[pSettings->scubberActiveId].lastDive); } } }