1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-1404 - Fix compilation with PIOS_GPS_MINIMAL defined

This commit is contained in:
Alessio Morale 2014-07-19 18:35:19 +02:00
parent 0976fb6e1b
commit 1dd05c24cc

View File

@ -276,7 +276,7 @@ void parse_ubx_nav_pvt(struct UBX_NAV_PVT *pvt, GPSPositionSensorData *GpsPositi
} else {
GpsPosition->Status = GPSPOSITIONSENSOR_STATUS_NOFIX;
}
#if !defined(PIOS_GPS_MINIMAL)
if (pvt->valid & PVT_VALID_VALIDTIME) {
// Time is valid, set GpsTime
GPSTimeData GpsTime;
@ -290,6 +290,7 @@ void parse_ubx_nav_pvt(struct UBX_NAV_PVT *pvt, GPSPositionSensorData *GpsPositi
GPSTimeSet(&GpsTime);
}
#endif
}
}
#if !defined(PIOS_GPS_MINIMAL)