diff Discovery/Src/tMenuEdit.c @ 786:19ab6f3ed52a

Cleanup sensor data interface: In a very early implementation of the multiplexer the address of the mux was 0 followed by the sensors. As a resul the ID of the channels was shifted by one. To avoid confusion and because the mux address is meanwhile changed to the last address, it makes sense to return to the indexing where only the three visible sensor slots are used as reference (0,1,2).
author Ideenmodellierer
date Sun, 04 Jun 2023 21:54:24 +0200
parents c31237d20491
children 4abfb8a2a435
line wrap: on
line diff
--- a/Discovery/Src/tMenuEdit.c	Wed May 31 08:44:07 2023 +0200
+++ b/Discovery/Src/tMenuEdit.c	Sun Jun 04 21:54:24 2023 +0200
@@ -352,12 +352,12 @@
     exitMenuEdit(1);
 	switch(globState)
 	{
-	 	 case (StMHARD3_O2_Sensor3): openInfo_Sensor(3);
+	 	 case (StMHARD3_O2_Sensor3): openInfo_Sensor(2);
 			break;
-	 	 case (StMHARD3_O2_Sensor2): openInfo_Sensor(2);
+	 	 case (StMHARD3_O2_Sensor2): openInfo_Sensor(1);
 	 	 	 break;
 	 	 default:
-	 	 case (StMHARD3_O2_Sensor1): openInfo_Sensor(1);
+	 	 case (StMHARD3_O2_Sensor1): openInfo_Sensor(0);
 	 	 	 break;
 	}
 }