From c94be48889b3696193010d1d43e7be0cad6c307e Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Tue, 5 Mar 2024 12:53:54 +1100 Subject: [PATCH] AP_GPS: add support for detecting L1L5 support through SW version string as well --- libraries/AP_GPS/AP_GPS_UBLOX.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_GPS/AP_GPS_UBLOX.cpp b/libraries/AP_GPS/AP_GPS_UBLOX.cpp index b37f9db453116..65761df7d4ebc 100644 --- a/libraries/AP_GPS/AP_GPS_UBLOX.cpp +++ b/libraries/AP_GPS/AP_GPS_UBLOX.cpp @@ -1399,7 +1399,8 @@ AP_GPS_UBLOX::_parse_gps(void) in_safeboot_mode = false; } // check if L1L5 in extension - if (memmem(_buffer.mon_ver.extension, sizeof(_buffer.mon_ver.extension), "L1L5", 4) != nullptr) { + if ((memmem(_buffer.mon_ver.extension, sizeof(_buffer.mon_ver.extension), "L1L5", 4) != nullptr) || + (memmem(_buffer.mon_ver.swVersion, sizeof(_buffer.mon_ver.swVersion), "L1L5", 4) != nullptr)) { supports_l5 = true; GCS_SEND_TEXT(MAV_SEVERITY_INFO, "u-blox supports L5 Band"); _unconfigured_messages |= CONFIG_L5;