diff Discovery/Src/tMenuEditHardware.c @ 799:1e3c12d772eb

Added CO2 mirrow instance: Using the CO2 mirror the co2 data may be displayed on one of the three O2 slots if a slot is not in used. The physical sensor can be found in the externalsensor map.
author Ideenmodellierer
date Mon, 07 Aug 2023 20:32:42 +0200
parents acf6614dc396
children 26ae9e8f24fd
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditHardware.c	Mon Aug 07 20:29:44 2023 +0200
+++ b/Discovery/Src/tMenuEditHardware.c	Mon Aug 07 20:32:42 2023 +0200
@@ -441,6 +441,7 @@
 
 	for(index = 0; index < 3; index++)
 	{
+		strSensorId[3] = TXT_2BYTE;
 		strSensorId[4] = 'X';
 		strSensorId[5] = '1' + index;
 
@@ -457,7 +458,8 @@
 				case SENSOR_DIGO2:
 				case SENSOR_DIGO2M: strSensorId[4] = TXT2BYTE_O2IFDigital;
 								break;
-				case SENSOR_CO2: strSensorId[3] = 'C';
+				case SENSOR_CO2:
+				case SENSOR_CO2M: strSensorId[3] = 'C';
 								 strSensorId[4] = 'O';
 								break;
 				case SENSOR_SENTINEL: strSensorId[3] = 'S';
@@ -476,7 +478,7 @@
 		{
 			snprintf(strSensorValue, 20,"%01.2f, %01.1f mV",  pStateReal->lifeData.ppO2Sensor_bar[index], pStateReal->lifeData.sensorVoltage_mV[index]);
 		}
-		else if(pSettings->ext_sensor_map[index] == SENSOR_CO2)
+		else if(pSettings->ext_sensor_map[index] == SENSOR_CO2M)
 		{
 			snprintf(strSensorValue, 20,"%ld ppm",  pStateReal->lifeData.CO2_data.CO2_ppm);
 		}