comparison Discovery/Src/tMenuEdit.c @ 949:c6b858f2e025 Evo_2_23 tip

GNSS UTC in Date-Time menu: The UTC time provided by the gnss module is not shown in the date-time settings menu. If a valid time signal is available then the OSTC RTC may be set to it by selecting the UTC menu entry. The time zone has to be selected manually. This is possible using a separate edit line.
author Ideenmodellierer
date Sun, 22 Dec 2024 21:19:21 +0100
parents 48b6a3b1f3f8
children
comparison
equal deleted inserted replaced
948:abdd72c8b567 949:c6b858f2e025
240 case (StMPLAN5_ExitResult & MaskFieldDigit): refreshFct = refresh_PlanResult; 240 case (StMPLAN5_ExitResult & MaskFieldDigit): refreshFct = refresh_PlanResult;
241 break; 241 break;
242 case (StMHARD5_Button1 & MaskFieldDigit): // will not be executed in EditFieldMode as global state is different 242 case (StMHARD5_Button1 & MaskFieldDigit): // will not be executed in EditFieldMode as global state is different
243 refreshFct = refresh_ButtonValuesFromPIC; 243 refreshFct = refresh_ButtonValuesFromPIC;
244 break; 244 break;
245 case StMSYS1_DateTime: refreshFct = refresh_DateTime;
246 break;
245 case (StMSYS3_Units & MaskFieldDigit): refreshFct = refresh_Design; 247 case (StMSYS3_Units & MaskFieldDigit): refreshFct = refresh_Design;
246 break; 248 break;
247 case (StMCustom1_CViewTimeout & MaskFieldDigit):refreshFct = refresh_Customviews; 249 case (StMCustom1_CViewTimeout & MaskFieldDigit):refreshFct = refresh_Customviews;
248 break; 250 break;
249 case (StMCustom4_CViewSelection1 & MaskFieldDigit): 251 case (StMCustom4_CViewSelection1 & MaskFieldDigit):
1337 void clean_content_of_actual_Id(void) 1339 void clean_content_of_actual_Id(void)
1338 { 1340 {
1339 clean_content_of_Id(actualId); 1341 clean_content_of_Id(actualId);
1340 } 1342 }
1341 1343
1344 uint8_t togglePlusMinus(uint8_t input)
1345 {
1346 if (input == '+') {
1347 return '-';
1348 } else {
1349 return '+';
1350 }
1351 }
1352
1342 void write_field_udigit_and_2digit(uint8_t subtype, uint32_t editID, uint16_t XleftGimpStyle, uint16_t XrightGimpStyle, uint16_t YtopGimpStyle, const tFont *Font, const char *text, uint32_t int1, uint32_t int2, uint32_t int3, uint32_t int4) 1353 void write_field_udigit_and_2digit(uint8_t subtype, uint32_t editID, uint16_t XleftGimpStyle, uint16_t XrightGimpStyle, uint16_t YtopGimpStyle, const tFont *Font, const char *text, uint32_t int1, uint32_t int2, uint32_t int3, uint32_t int4)
1343 { 1354 {
1344 if(id >= 9) 1355 if(id >= 9)
1345 return; 1356 return;
1346 1357