diff 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
line wrap: on
line diff
--- a/Discovery/Src/tCCR.c	Mon Jul 31 20:00:06 2023 +0200
+++ b/Discovery/Src/tCCR.c	Mon Jul 31 20:10:27 2023 +0200
@@ -180,8 +180,8 @@
 
         if(sensorActive[index])
         {
-        	if(((stateUsed->lifeData.extIf_sensor_map[index] == SENSOR_DIGO2) && (((SSensorDataDiveO2*)(stateUsed->lifeData.extIf_sensor_data[index]))->status & DVO2_FATAL_ERROR))
-        			|| ((stateUsed->lifeData.extIf_sensor_map[index] != SENSOR_DIGO2)
+        	if(((stateUsed->lifeData.extIf_sensor_map[index] == SENSOR_DIGO2M) && (((SSensorDataDiveO2*)(stateUsed->lifeData.extIf_sensor_data[index]))->status & DVO2_FATAL_ERROR))
+        			|| ((stateUsed->lifeData.extIf_sensor_map[index] != SENSOR_DIGO2M)
         					&& (((stateUsed->lifeData.sensorVoltage_mV[index] < MIN_SENSOR_VOLTAGE_MV) || (stateUsed->lifeData.sensorVoltage_mV[index] > MAX_SENSOR_VOLTAGE_MV)))))
 			{
 				sensorActive[index] = 0;