comparison 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
comparison
equal deleted inserted replaced
999:ac25c35a3c97 1000:c386ae6635e4
1202 || (global.lifeData.pressure_ambient_bar > START_DIVE_IMMEDIATLY_BAR)) 1202 || (global.lifeData.pressure_ambient_bar > START_DIVE_IMMEDIATLY_BAR))
1203 { 1203 {
1204 global.mode = MODE_BOOT; 1204 global.mode = MODE_BOOT;
1205 } 1205 }
1206 scheduleUpdateLifeData(2000); 1206 scheduleUpdateLifeData(2000);
1207 #ifdef ENABLE_GNSS_INTER 1207 #ifdef ENABLE_GNSS_INTERN
1208 if(GPIO_GetVersion() > 0) 1208 if(GPIO_GetVersion() > 0)
1209 { 1209 {
1210 if(deepSleepCntDwn) 1210 if(deepSleepCntDwn)
1211 { 1211 {
1212 deepSleepCntDwn--; 1212 deepSleepCntDwn--;
1247 if(GPIO_GetVersion() > 0) 1247 if(GPIO_GetVersion() > 0)
1248 { 1248 {
1249 if(deepSleep != 0) 1249 if(deepSleep != 0)
1250 { 1250 {
1251 GPIO_GNSS_Init(); 1251 GPIO_GNSS_Init();
1252 }
1253 else
1254 {
1255 GNSS_IO_init();
1252 } 1256 }
1253 } 1257 }
1254 #endif 1258 #endif
1255 } 1259 }
1256 1260