comparison Discovery/Src/tMenuHardware.c @ 827:ffb1036c27c2 Evo_2_23

Moved CO2 Menu from Xtra to Hardware: The first CO2 sensor menu implementation was placed within the Xtra menu. In the new version the CO2 options may be accessed using the sensor overview menu of the Hardware page. With this change it is no longer necessary to take care for compile switches in the menus because the menu will only be shown if a CO2 sensor is detected.
author Ideenmodellierer
date Sun, 05 Nov 2023 20:19:08 +0100
parents 9825dcf50675
children
comparison
equal deleted inserted replaced
826:a370741a743b 827:ffb1036c27c2
100 { 100 {
101 text[textPointer++] = '\t'; 101 text[textPointer++] = '\t';
102 sensorStatusColor[0] = '\020'; 102 sensorStatusColor[0] = '\020';
103 sensorStatusColor[1] = '\020'; 103 sensorStatusColor[1] = '\020';
104 sensorStatusColor[2] = '\020'; 104 sensorStatusColor[2] = '\020';
105 if(stateUsed->diveSettings.ppo2sensors_deactivated) 105
106 { 106 if((stateUsed->diveSettings.ppo2sensors_deactivated & 1) || (data->ext_sensor_map[0] > SENSOR_DIGO2M))
107 if(stateUsed->diveSettings.ppo2sensors_deactivated & 1)
108 sensorStatusColor[0] = '\031'; 107 sensorStatusColor[0] = '\031';
109 if(stateUsed->diveSettings.ppo2sensors_deactivated & 2) 108 if((stateUsed->diveSettings.ppo2sensors_deactivated & 2) || (data->ext_sensor_map[1] > SENSOR_DIGO2M))
110 sensorStatusColor[1] = '\031'; 109 sensorStatusColor[1] = '\031';
111 if(stateUsed->diveSettings.ppo2sensors_deactivated & 4) 110 if((stateUsed->diveSettings.ppo2sensors_deactivated & 4) || (data->ext_sensor_map[1] > SENSOR_DIGO2M))
112 sensorStatusColor[2] = '\031'; 111 sensorStatusColor[2] = '\031';
113 } 112
114 textPointer += snprintf(&text[textPointer],20,"%c%01.1f %c%01.1f %c%01.1f\020" 113 textPointer += snprintf(&text[textPointer],20,"%c%01.1f %c%01.1f %c%01.1f\020"
115 ,sensorStatusColor[0], stateUsed->lifeData.ppO2Sensor_bar[0] 114 ,sensorStatusColor[0], stateUsed->lifeData.ppO2Sensor_bar[0]
116 ,sensorStatusColor[1], stateUsed->lifeData.ppO2Sensor_bar[1] 115 ,sensorStatusColor[1], stateUsed->lifeData.ppO2Sensor_bar[1]
117 ,sensorStatusColor[2], stateUsed->lifeData.ppO2Sensor_bar[2]); 116 ,sensorStatusColor[2], stateUsed->lifeData.ppO2Sensor_bar[2]);
118 } 117 }