Skip to content

Commit

Permalink
AP_GPS: add support for detecting L1L5 support through SW version str…
Browse files Browse the repository at this point in the history
…ing as well
  • Loading branch information
bugobliterator committed Apr 8, 2024
1 parent b69e5f7 commit c94be48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/AP_GPS/AP_GPS_UBLOX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c94be48

Please sign in to comment.