Mercurial > public > ostc4
comparison Discovery/Src/tMenuEditCvOption.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 | 85f7e19c6688 |
| children | 33b91584d827 |
comparison
equal
deleted
inserted
replaced
| 1013:fa1af49319e5 | 1014:8c0134a287da |
|---|---|
| 326 disableTimer(); | 326 disableTimer(); |
| 327 | 327 |
| 328 tMenuEdit_newInput(editId, settings->timerDurationS / 60, settings->timerDurationS % 60, 0, 0); | 328 tMenuEdit_newInput(editId, settings->timerDurationS / 60, settings->timerDurationS % 60, 0, 0); |
| 329 } | 329 } |
| 330 | 330 |
| 331 settings->cv_configuration |= (1 << CVIEW_Timer); | |
| 332 | |
| 331 return EXIT_TO_MENU; | 333 return EXIT_TO_MENU; |
| 332 } | 334 } |
| 333 case ACTION_BUTTON_NEXT: | 335 case ACTION_BUTTON_NEXT: |
| 334 digitContentNew = digitContent + 1; | 336 digitContentNew = digitContent + 1; |
| 335 if ((blockNumber == 1 && digitNumber == 0 && digitContentNew > '5') || digitContentNew > '9') { | 337 if ((blockNumber == 1 && digitNumber == 0 && digitContentNew > '5') || digitContentNew > '9') { |
