diff Small_CPU/Src/externalInterface.c @ 746:7e84ae1513b6

Code cleanup sensors under development: Deactivated compile option for Sentinel and CO2 sensor. Added missing compile switches.
author Ideenmodellierer
date Tue, 21 Feb 2023 21:19:31 +0100
parents e23fe82cbf8c
children df0d43da1614
line wrap: on
line diff
--- a/Small_CPU/Src/externalInterface.c	Sun Feb 19 21:52:02 2023 +0100
+++ b/Small_CPU/Src/externalInterface.c	Tue Feb 21 21:19:31 2023 +0100
@@ -314,9 +314,14 @@
 		case (EXT_INTERFACE_UART_CO2 >> 8):
 		case (EXT_INTERFACE_UART_O2 >> 8):
 		case (EXT_INTERFACE_UART_SENTINEL >> 8):
-				if((externalAutoDetect <= DETECTION_START) || ((protocol == EXT_INTERFACE_UART_CO2 >> 8) && (externalAutoDetect == DETECTION_CO2))
-														   || ((protocol == EXT_INTERFACE_UART_O2 >> 8) && (externalAutoDetect == DETECTION_DIGO2))
-														   || ((protocol == EXT_INTERFACE_UART_SENTINEL >> 8) && (externalAutoDetect == DETECTION_SENTINEL)))
+				if((externalAutoDetect <= DETECTION_START) || ((protocol == EXT_INTERFACE_UART_O2 >> 8) && (externalAutoDetect == DETECTION_DIGO2))
+#ifdef ENABLE_CO2_SUPPORT
+															|| ((protocol == EXT_INTERFACE_UART_CO2 >> 8) && (externalAutoDetect == DETECTION_CO2))
+#endif
+#ifdef ENABLE_SENTINEL_MODE
+														   || ((protocol == EXT_INTERFACE_UART_SENTINEL >> 8) && (externalAutoDetect == DETECTION_SENTINEL))
+#endif
+					)
 				{
 					sensorDataId = 0;
 					externalUART_Protocol = protocol;