diff Small_CPU/Src/scheduler.c @ 940:4a406e873a95 Evo_2_23

GNSS improvments: - Introduce alive indicator; Status string will switch between white and grey with every message received from the module - shorten visibility of "shutting down" string. a busy wait of 1 second was applied in the sleep prepare function. The time is now included in the time needed to prepare the module for low power operation - make sure GPIO is properly initialized after deep sleep
author Ideenmodellierer
date Thu, 12 Dec 2024 21:12:07 +0100
parents d461d9e89e3c
children 06aaccaf2e02
line wrap: on
line diff
--- a/Small_CPU/Src/scheduler.c	Tue Dec 10 21:03:04 2024 +0100
+++ b/Small_CPU/Src/scheduler.c	Thu Dec 12 21:12:07 2024 +0100
@@ -1206,6 +1206,11 @@
 	setButtonsNow = 0;
 	reinitGlobals();
 	ReInit_battery_charger_status_pins();
+
+	if(deepSleepCntDwn == 0)
+	{
+		GPIO_GNSS_Init();
+	}
 }
 
 
@@ -1771,6 +1776,8 @@
 	global.dataSendToMaster.data[0].gnssInfo.fLon = GNSS_Handle.fLon;
 	global.dataSendToMaster.data[0].gnssInfo.fixType = GNSS_Handle.fixType;
 	global.dataSendToMaster.data[0].gnssInfo.numSat = GNSS_Handle.numSat;
+	global.dataSendToMaster.data[0].gnssInfo.alive = GNSS_Handle.alive;
+
 	memcpy(&global.dataSendToMaster.data[0].gnssInfo.signalQual,&GNSS_Handle.statSat, sizeof(GNSS_Handle.statSat));
 }