Mercurial > public > ostc4
diff 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 |
line wrap: on
line diff
--- a/Discovery/Src/logbook.c Sun Jan 19 12:00:50 2025 +0100 +++ b/Discovery/Src/logbook.c Sun Jan 19 12:02:59 2025 +0100 @@ -1363,8 +1363,12 @@ #if defined ENABLE_GNSS_SUPPORT || defined ENABLE_GPIO_V2 pStateReal->events.gnssPositionUpdate = 1; - pStateReal->events.info_gnssPosition = pStateReal->lifeData.gnssData.coord; - if((pStateReal->events.info_gnssPosition.fLat == 0.0) && (pStateReal->events.info_gnssPosition.fLon == 0.0)) /* no pos => define dummy */ + + if(pStateReal->lifeData.gnssData.alive & GNSS_ALIVE_BACKUP_POS) + { + pStateReal->events.info_gnssPosition = pStateReal->lifeData.gnssData.coord; + } + else /* no pos => define dummy */ { pStateReal->events.info_gnssPosition.fLon = 47.77; pStateReal->events.info_gnssPosition.fLat = 8.99;
