mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
OP-1056 Fix the TIMEUTC valid flags in GPS UBX protocol
This commit is contained in:
parent
988a732e79
commit
d70d8df272
@ -254,7 +254,7 @@ void parse_ubx_nav_velned(struct UBX_NAV_VELNED *velned, GPSPositionSensorData *
|
|||||||
#if !defined(PIOS_GPS_MINIMAL)
|
#if !defined(PIOS_GPS_MINIMAL)
|
||||||
void parse_ubx_nav_timeutc(struct UBX_NAV_TIMEUTC *timeutc)
|
void parse_ubx_nav_timeutc(struct UBX_NAV_TIMEUTC *timeutc)
|
||||||
{
|
{
|
||||||
if (!(timeutc->valid & TIMEUTC_VALIDUTC)) {
|
if (!(timeutc->valid & TIMEUTC_VALIDTOW) || !(timeutc->valid & TIMEUTC_VALIDWKN)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user