1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

OP-1056 Fix the TIMEUTC valid flags in GPS UBX protocol

This commit is contained in:
Bertrand Oresve 2014-04-12 09:24:08 +02:00
parent 988a732e79
commit d70d8df272

View File

@ -254,7 +254,7 @@ void parse_ubx_nav_velned(struct UBX_NAV_VELNED *velned, GPSPositionSensorData *
#if !defined(PIOS_GPS_MINIMAL)
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;
}