mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-17 02:35:08 +00:00
clean up old data during fix transition
This commit is contained in:
parent
7ecb36dbe7
commit
a911515dec
@ -268,6 +268,8 @@ bool UBloxGPS::lookForLocation()
|
|||||||
#ifdef GPS_EXTRAVERBOSE
|
#ifdef GPS_EXTRAVERBOSE
|
||||||
DEBUG_MSG("no altitude data (fixType=%d)\n", fixType);
|
DEBUG_MSG("no altitude data (fixType=%d)\n", fixType);
|
||||||
#endif
|
#endif
|
||||||
|
// clean up old values in case it's a 3d-2d fix transition
|
||||||
|
p.altitude = p.altitude_hae = p.alt_geoid_sep = 0;
|
||||||
}
|
}
|
||||||
p.pos_timestamp = tmp_ts;
|
p.pos_timestamp = tmp_ts;
|
||||||
p.PDOP = tmp_dop;
|
p.PDOP = tmp_dop;
|
||||||
|
Loading…
Reference in New Issue
Block a user