comparison Discovery/Src/tCCR.c @ 797:acf6614dc396

Use mirror sensortype for visualization: The visualization of O2 sensor data is still based on the three slots. To make the usage of these slots more transparent and easy "mirror" sensortypes have been introduced. These types may be used within the refresh to switch the source. E.g. if only one or two slots are used for O2 values the the third may be used for CO2 data. By using the mirror the datastream does no longer need to be manipulated (copying Co2data in variables named O2xyz).
author Ideenmodellierer
date Mon, 31 Jul 2023 20:10:27 +0200
parents 9a1bb9e7cb61
children
comparison
equal deleted inserted replaced
796:75ace7af8212 797:acf6614dc396
178 { 178 {
179 sensorState[index] = sensorOK; 179 sensorState[index] = sensorOK;
180 180
181 if(sensorActive[index]) 181 if(sensorActive[index])
182 { 182 {
183 if(((stateUsed->lifeData.extIf_sensor_map[index] == SENSOR_DIGO2) && (((SSensorDataDiveO2*)(stateUsed->lifeData.extIf_sensor_data[index]))->status & DVO2_FATAL_ERROR)) 183 if(((stateUsed->lifeData.extIf_sensor_map[index] == SENSOR_DIGO2M) && (((SSensorDataDiveO2*)(stateUsed->lifeData.extIf_sensor_data[index]))->status & DVO2_FATAL_ERROR))
184 || ((stateUsed->lifeData.extIf_sensor_map[index] != SENSOR_DIGO2) 184 || ((stateUsed->lifeData.extIf_sensor_map[index] != SENSOR_DIGO2M)
185 && (((stateUsed->lifeData.sensorVoltage_mV[index] < MIN_SENSOR_VOLTAGE_MV) || (stateUsed->lifeData.sensorVoltage_mV[index] > MAX_SENSOR_VOLTAGE_MV))))) 185 && (((stateUsed->lifeData.sensorVoltage_mV[index] < MIN_SENSOR_VOLTAGE_MV) || (stateUsed->lifeData.sensorVoltage_mV[index] > MAX_SENSOR_VOLTAGE_MV)))))
186 { 186 {
187 sensorActive[index] = 0; 187 sensorActive[index] = 0;
188 switch(index) 188 switch(index)
189 { 189 {