comparison Discovery/Src/tMenuCvOptionText.c @ 1073:734f84b72b30 Icon_Integration tip

CV Option Menu added sub menus for O2 and CO2 sensors: In the previous implementation by the external sensor menu the problem exists that only three sensor could be displayed. If three o2 sensors were active then the CO2 sensor was not accessible. With the new dynamic view the CO2 sensor is a standalone menu element. The three sensor view was reused from the external sensor menu by introducing a filter (sensor type) functionality. O" and CO2 sensors may now be calibrated using the cv option sub menus.
author Ideenmodellierer
date Fri, 20 Feb 2026 17:26:46 +0100
parents b4a79464caf7
children
comparison
equal deleted inserted replaced
1072:8b97003dbb60 1073:734f84b72b30
155 uint8_t index = 0; 155 uint8_t index = 0;
156 uint8_t SensorActive[SENSOR_END]; 156 uint8_t SensorActive[SENSOR_END];
157 SSettings *settings = settingsGetPointer(); 157 SSettings *settings = settingsGetPointer();
158 158
159 memset(SensorActive, 0, sizeof(SensorActive)); 159 memset(SensorActive, 0, sizeof(SensorActive));
160 160 activeLines = 0;
161 161
162 for (index = 0; index < EXT_INTERFACE_SENSOR_CNT; index++) 162 for (index = 0; index < EXT_INTERFACE_SENSOR_CNT; index++)
163 { 163 {
164 switch(settings->ext_sensor_map[index]) 164 switch(settings->ext_sensor_map[index])
165 { 165 {
221 221
222 for(index = activeLines; index < MAXLINES; index++) /* delete pointers not in use */ 222 for(index = activeLines; index < MAXLINES; index++) /* delete pointers not in use */
223 { 223 {
224 tMCvOption_SetOpenFnct(CVOPT_END, index); 224 tMCvOption_SetOpenFnct(CVOPT_END, index);
225 } 225 }
226
227 return activeLines; 226 return activeLines;
228 } 227 }
229 228
230 229
231 /* Private functions ---------------------------------------------------------*/ 230 /* Private functions ---------------------------------------------------------*/