comparison Discovery/Src/logbook.c @ 969:81049905d829 Evo_2_23

Zusammenf?hren
author heinrichsweikamp
date Sun, 19 Jan 2025 12:02:59 +0100
parents 9b29995d6619
children d9290c76b840
comparison
equal deleted inserted replaced
968:b9a1710522b1 969:81049905d829
1361 ext_flash_CloseSector(); /* this is just a repair function which invalidates a not used sector in case a log maintenance was called before dive */ 1361 ext_flash_CloseSector(); /* this is just a repair function which invalidates a not used sector in case a log maintenance was called before dive */
1362 bDiveMode = 3; 1362 bDiveMode = 3;
1363 1363
1364 #if defined ENABLE_GNSS_SUPPORT || defined ENABLE_GPIO_V2 1364 #if defined ENABLE_GNSS_SUPPORT || defined ENABLE_GPIO_V2
1365 pStateReal->events.gnssPositionUpdate = 1; 1365 pStateReal->events.gnssPositionUpdate = 1;
1366 pStateReal->events.info_gnssPosition = pStateReal->lifeData.gnssData.coord; 1366
1367 if((pStateReal->events.info_gnssPosition.fLat == 0.0) && (pStateReal->events.info_gnssPosition.fLon == 0.0)) /* no pos => define dummy */ 1367 if(pStateReal->lifeData.gnssData.alive & GNSS_ALIVE_BACKUP_POS)
1368 {
1369 pStateReal->events.info_gnssPosition = pStateReal->lifeData.gnssData.coord;
1370 }
1371 else /* no pos => define dummy */
1368 { 1372 {
1369 pStateReal->events.info_gnssPosition.fLon = 47.77; 1373 pStateReal->events.info_gnssPosition.fLon = 47.77;
1370 pStateReal->events.info_gnssPosition.fLat = 8.99; 1374 pStateReal->events.info_gnssPosition.fLat = 8.99;
1371 } 1375 }
1372 #endif 1376 #endif