comparison Discovery/Src/tMenuEditCvOption.c @ 1001:21142f4fa968 GasConsumption

Cleanup menu structucture afer menu shift: Compass and timer have been moved to the new menu => some code cleanup was needed.
author Ideenmodellierer
date Mon, 28 Apr 2025 22:53:36 +0200
parents ac25c35a3c97
children 85f7e19c6688
comparison
equal deleted inserted replaced
1000:c386ae6635e4 1001:21142f4fa968
278 278
279 char text[32]; 279 char text[32];
280 snprintf(text, 32, "\001%c%c", TXT_2BYTE, TXT2BYTE_Timer); 280 snprintf(text, 32, "\001%c%c", TXT_2BYTE, TXT2BYTE_Timer);
281 write_topline(text); 281 write_topline(text);
282 282
283 set_globalState(StMOption_Timer);
284
283 uint16_t yPos = ME_Y_LINE_BASE + get_globalState_Menu_Line() * ME_Y_LINE_STEP; 285 uint16_t yPos = ME_Y_LINE_BASE + get_globalState_Menu_Line() * ME_Y_LINE_STEP;
284 snprintf(text, 32, "%c%c", TXT_2BYTE, TXT2BYTE_Timer); 286 snprintf(text, 32, "%c%c", TXT_2BYTE, TXT2BYTE_Timer);
285 write_label_var(30, 299, yPos, &FontT48, text); 287 write_label_var(30, 299, yPos, &FontT48, text);
286 write_field_udigit(StMOption_Timer, 300, 392, yPos, &FontT48, "#:##", settings->timerDurationS / 60, settings->timerDurationS % 60, 0, 0); 288 write_field_udigit(StMOption_Timer, 300, 392, yPos, &FontT48, "#:##", settings->timerDurationS / 60, settings->timerDurationS % 60, 0, 0);
287 write_label_var(393, 800, yPos, &FontT48, "\016\016 [m:ss]\017"); 289 write_label_var(393, 800, yPos, &FontT48, "\016\016 [m:ss]\017");