Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
923:6fc0e3d230e4 | 924:4d98fb2a178e |
---|---|
1969 return t3_selection_customview; | 1969 return t3_selection_customview; |
1970 } | 1970 } |
1971 | 1971 |
1972 int printScrubberText(char *text, size_t size, SSettings *settings) | 1972 int printScrubberText(char *text, size_t size, SSettings *settings) |
1973 { | 1973 { |
1974 int16_t currentTimerMinutes = settings->scrubberData[settings->scubberActiveId].TimerCur; | 1974 int16_t currentTimerMinutes = stateUsed->scrubberDataDive[settings->scubberActiveId].TimerCur; |
1975 char colour = '\020'; | 1975 char colour = '\020'; |
1976 if (currentTimerMinutes <= 0) { | 1976 if (currentTimerMinutes <= 0) { |
1977 colour = '\025'; | 1977 colour = '\025'; |
1978 } else if (currentTimerMinutes <= 30) { | 1978 } else if (currentTimerMinutes <= 30) { |
1979 colour = '\024'; | 1979 colour = '\024'; |