comparison Discovery/Src/tMenuEdit.c @ 783:c31237d20491

Update digital O2 sensor information: In the previous version only one digital O2 sensor was supported and the additional data could be accessed via a separate menu item. Because of the intraduction of the multiplexer there are three datasets available not. Because of the existing menu structure it was not possible to add additional menu items. To solve the problem the sensor information has been moved beghind the sensor On/Off functionality. When selecting a sensor the sensor data will be shown and the de-/activation of a sensor may be done in scope of the sensor information dialog.
author Ideenmodellierer
date Mon, 29 May 2023 20:26:38 +0200
parents 45b8f3c2acce
children 19ab6f3ed52a
comparison
equal deleted inserted replaced
782:9a1bb9e7cb61 783:c31237d20491
127 void upMenuEditFieldDigit(void); 127 void upMenuEditFieldDigit(void);
128 void downMenuEditFieldDigit(void); 128 void downMenuEditFieldDigit(void);
129 129
130 void draw_tMEcursorNewDesign(void); 130 void draw_tMEcursorNewDesign(void);
131 131
132 void exitMenuEdit(uint8_t writeSettingsIfEnterPressed);
133 uint8_t split_Content_to_Digit_helper(uint8_t inContentAscii, uint8_t *outDigit100, uint8_t *outDigit10, uint8_t *outDigit1); 132 uint8_t split_Content_to_Digit_helper(uint8_t inContentAscii, uint8_t *outDigit100, uint8_t *outDigit10, uint8_t *outDigit1);
134 133
135 /* Exported functions --------------------------------------------------------*/ 134 /* Exported functions --------------------------------------------------------*/
136 135
137 void tMenuEdit_init(void) 136 void tMenuEdit_init(void)
346 openInfo_Compass(); 345 openInfo_Compass();
347 } 346 }
348 347
349 void exitMenuEdit_to_InfoSensor(void) 348 void exitMenuEdit_to_InfoSensor(void)
350 { 349 {
350 uint32_t globState = get_globalState();
351
351 exitMenuEdit(1); 352 exitMenuEdit(1);
352 openInfo_Sensor(); 353 switch(globState)
354 {
355 case (StMHARD3_O2_Sensor3): openInfo_Sensor(3);
356 break;
357 case (StMHARD3_O2_Sensor2): openInfo_Sensor(2);
358 break;
359 default:
360 case (StMHARD3_O2_Sensor1): openInfo_Sensor(1);
361 break;
362 }
353 } 363 }
354 364
355 365
356 void exitMenuEdit_to_Home(void) 366 void exitMenuEdit_to_Home(void)
357 { 367 {