Mercurial > public > ostc4
comparison Discovery/Src/tMenuEditDeco.c @ 914:5ce7708a9095 Evo_2_23
Devbugfix SlowExit depth:
The slow exit time instead of the depth has been shown in the option menu.
author | Ideenmodellierer |
---|---|
date | Sat, 19 Oct 2024 20:06:55 +0200 |
parents | 24c08a80a5f7 |
children |
comparison
equal
deleted
inserted
replaced
913:5f38cf765193 | 914:5ce7708a9095 |
---|---|
284 | 284 |
285 strcpy(text,"\016\016"); | 285 strcpy(text,"\016\016"); |
286 text[2] = TXT_Minutes; | 286 text[2] = TXT_Minutes; |
287 if(settingsGetPointer()->nonMetricalSystem) | 287 if(settingsGetPointer()->nonMetricalSystem) |
288 { | 288 { |
289 sprintf(&text[3], "\017 ^ %u\016\016 ft\017", settingsGetPointer()->slowExitTime); | 289 sprintf(&text[3], "\017 ^ %u\016\016 ft\017", unit_depth_integer(settingsGetPointer()->last_stop_depth_meter)); |
290 } | 290 } |
291 else | 291 else |
292 { | 292 { |
293 sprintf(&text[3], "\017 ^ %u\016\016 m\017", settingsGetPointer()->slowExitTime); | 293 sprintf(&text[3], "\017 ^ %u\016\016 m\017", settingsGetPointer()->last_stop_depth_meter); |
294 } | 294 } |
295 write_label_var( 410, 800, y_line, &FontT48, text); | 295 write_label_var( 410, 800, y_line, &FontT48, text); |
296 | 296 |
297 write_field_udigit(StMDECO_SlowExit, 370, 800, y_line, &FontT48, "#", SlowExitTime, 0, 0, 0); | 297 write_field_udigit(StMDECO_SlowExit, 370, 800, y_line, &FontT48, "#", SlowExitTime, 0, 0, 0); |
298 write_buttonTextline(TXT2BYTE_ButtonMinus,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonPlus); | 298 write_buttonTextline(TXT2BYTE_ButtonMinus,TXT2BYTE_ButtonEnter,TXT2BYTE_ButtonPlus); |