diff Small_CPU/Src/scheduler.c @ 1000:c386ae6635e4 GasConsumption

Improve GNSS operation: during OSTC 4/5 code merge a problem with the wakeup of the gnss module showed up which has been fixed with the new verion. In addition a compile switch has been added which activated the synchronization of time between OSTC and gnss module. This my cause problems if the time is not accurate => deactivated at the moment.
author Ideenmodellierer
date Mon, 28 Apr 2025 19:51:36 +0200
parents d9290c76b840
children 9fabad6436a2
line wrap: on
line diff
--- a/Small_CPU/Src/scheduler.c	Mon Apr 28 19:47:41 2025 +0200
+++ b/Small_CPU/Src/scheduler.c	Mon Apr 28 19:51:36 2025 +0200
@@ -1204,7 +1204,7 @@
 			global.mode = MODE_BOOT;
 		}
 		scheduleUpdateLifeData(2000);
-#ifdef ENABLE_GNSS_INTER
+#ifdef ENABLE_GNSS_INTERN
 		if(GPIO_GetVersion() > 0)
 		{
 			if(deepSleepCntDwn)
@@ -1250,6 +1250,10 @@
 		{
 			GPIO_GNSS_Init();
 		}
+		else
+		{
+			GNSS_IO_init();
+		}
 	}
 #endif
 }