Mercurial > public > ostc4
comparison Discovery/Src/tMenuCvOption.c @ 1014:8c0134a287da GasConsumption
Add a log data event to the scrubber timer at the start of the dive and every time the timer (in minutes)
is decremented. The event contains a 12 bit signed integer for the remaining scrubber duration, and two
flags for scrubber warning (0x2000, <= 30 minutes remaining) and scrubber error (0x4000, <= 0 minutes remaining).
(mikeller)
| author | heinrichsweikamp |
|---|---|
| date | Sun, 11 May 2025 16:18:20 +0200 |
| parents | 21142f4fa968 |
| children | 33b91584d827 |
comparison
equal
deleted
inserted
replaced
| 1013:fa1af49319e5 | 1014:8c0134a287da |
|---|---|
| 65 { | 65 { |
| 66 if(t7_customview_disabled(CVIEW_Timer)) | 66 if(t7_customview_disabled(CVIEW_Timer)) |
| 67 { | 67 { |
| 68 text[textPointer++] = '\031'; /* change text color */ | 68 text[textPointer++] = '\031'; /* change text color */ |
| 69 textPointer += snprintf(&text[textPointer], 21, "%c%c\t%u:%02u \016\016[m:ss]\017", TXT_2BYTE, TXT2BYTE_Timer, data->timerDurationS / 60, data->timerDurationS % 60); | 69 textPointer += snprintf(&text[textPointer], 21, "%c%c\t%u:%02u \016\016[m:ss]\017", TXT_2BYTE, TXT2BYTE_Timer, data->timerDurationS / 60, data->timerDurationS % 60); |
| 70 disableLine(StMOption_Timer); | |
| 71 text[textPointer++] = '\020'; /* restore text color */ | 70 text[textPointer++] = '\020'; /* restore text color */ |
| 72 } | 71 } |
| 73 else | 72 else |
| 74 { | 73 { |
| 75 textPointer += snprintf(&text[textPointer], 21, "%c%c\t%u:%02u \016\016[m:ss]\017", TXT_2BYTE, TXT2BYTE_Timer, data->timerDurationS / 60, data->timerDurationS % 60); | 74 textPointer += snprintf(&text[textPointer], 21, "%c%c\t%u:%02u \016\016[m:ss]\017", TXT_2BYTE, TXT2BYTE_Timer, data->timerDurationS / 60, data->timerDurationS % 60); |
