changeset 956:083afabc6578 Evo_2_23

Bugfix UART sensor MUX channel selection after sleep: In case only one UART sensor is connected to the MUX, to a channel other than 0 then the sensor operation could fail in case the initial mux address selection was not successfull. To fix this problem the MUX address is selected again in case a timeout occures during sensor setup.
author Ideenmodellierer
date Mon, 06 Jan 2025 17:55:34 +0100
parents 9b29995d6619
children 3420e3ba698d
files Small_CPU/Src/externalInterface.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Small_CPU/Src/externalInterface.c	Wed Jan 01 20:37:17 2025 +0100
+++ b/Small_CPU/Src/externalInterface.c	Mon Jan 06 17:55:34 2025 +0100
@@ -1192,6 +1192,12 @@
 						break;
 				}
 			}
+			if((externalInterface_SensorState[activeSensorId] == UART_CO2_SETUP)	/* timeout while setting up sensors */
+					|| (externalInterface_SensorState[activeSensorId] == UART_O2_CHECK))
+			{
+				forceMuxChannel = 1;
+			}
+
 
 			if(pmap[EXT_INTERFACE_SENSOR_CNT-1] == SENSOR_MUX) /* select next sensor if mux is connected */
 			{