From ffe642a530d5f231fcd6b2fa8b5a91cc8059d952 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 12 Nov 2019 22:03:37 +1100 Subject: [PATCH] AP_GPS: fixed TMODE config issue on non-F9 GPS thanks to Michel Pastor for reporting this --- libraries/AP_GPS/AP_GPS_UBLOX.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_GPS/AP_GPS_UBLOX.cpp b/libraries/AP_GPS/AP_GPS_UBLOX.cpp index ef49499deb..1ad854c276 100644 --- a/libraries/AP_GPS/AP_GPS_UBLOX.cpp +++ b/libraries/AP_GPS/AP_GPS_UBLOX.cpp @@ -898,6 +898,10 @@ AP_GPS_UBLOX::_parse_gps(void) // check for F9. The F9 does not respond to SVINFO, so we need to use MON_VER // for hardware generation if (strncmp(_version.hwVersion, "00190000", 8) == 0) { + if (_hardware_generation != UBLOX_F9) { + // need to ensure time mode is correctly setup on F9 + _unconfigured_messages |= CONFIG_TMODE_MODE; + } _hardware_generation = UBLOX_F9; } break;