diff --git a/libraries/AP_GPS/AP_GPS_UBLOX.cpp b/libraries/AP_GPS/AP_GPS_UBLOX.cpp index 81b33dc5a0beb..ac947b7a37864 100644 --- a/libraries/AP_GPS/AP_GPS_UBLOX.cpp +++ b/libraries/AP_GPS/AP_GPS_UBLOX.cpp @@ -1719,8 +1719,10 @@ AP_GPS_UBLOX::_parse_gps(void) state.hdop = _buffer.pvt.p_dop; state.vdop = _buffer.pvt.p_dop; } - - state.last_gps_time_ms = AP_HAL::millis(); + + if (_buffer.pvt.fix_type >= 2) { + state.last_gps_time_ms = AP_HAL::millis(); + } // time state.time_week_ms = _buffer.pvt.itow;