diff Discovery/Src/data_exchange_main.c @ 920:c4c9850a2039 Evo_2_23

Added view for position data: A custom view for visualization of GPS data has been added. It may be activated using the compile switch ENABLE_GNSS_SUPPORT
author Ideenmodellierer
date Sun, 03 Nov 2024 15:44:54 +0100
parents a2523e19f59a
children
line wrap: on
line diff
--- a/Discovery/Src/data_exchange_main.c	Sun Nov 03 15:43:04 2024 +0100
+++ b/Discovery/Src/data_exchange_main.c	Sun Nov 03 15:44:54 2024 +0100
@@ -411,6 +411,10 @@
 				break;
 			case SENSOR_CO2:	SensorActive[SENSOR_CO2] = 1;
 				break;
+#ifdef ENABLE_GNSS_SUPPORT
+			case SENSOR_GNSS:	SensorActive[SENSOR_GNSS] = 1;
+				break;
+#endif
 #ifdef ENABLE_SENTINEL_MODE
 			case SENSOR_SENTINEL:	SensorActive[SENSOR_SENTINEL] = 1;
 				break;
@@ -424,7 +428,7 @@
 	{
 		externalInterface_Cmd |= EXT_INTERFACE_ADC_ON | EXT_INTERFACE_33V_ON;
 	}
-	if((SensorActive[SENSOR_DIGO2]) || (SensorActive[SENSOR_CO2]))
+	if((SensorActive[SENSOR_DIGO2]) || (SensorActive[SENSOR_CO2])|| (SensorActive[SENSOR_GNSS]))
 	{
 		externalInterface_Cmd |= EXT_INTERFACE_33V_ON;
 	}