mirror of https://github.com/ArduPilot/ardupilot
AP_GPS: Ublox: Skip SBAS request if we don't want to alter it
This commit is contained in:
parent
b7f95d9c25
commit
d97861d685
|
@ -114,7 +114,11 @@ AP_GPS_UBLOX::_request_next_config(void)
|
|||
}
|
||||
break;
|
||||
case STEP_POLL_SBAS:
|
||||
_send_message(CLASS_CFG, MSG_CFG_SBAS, nullptr, 0);
|
||||
if (gps._sbas_mode != 2) {
|
||||
_send_message(CLASS_CFG, MSG_CFG_SBAS, nullptr, 0);
|
||||
} else {
|
||||
_unconfigured_messages &= ~CONFIG_SBAS;
|
||||
}
|
||||
break;
|
||||
case STEP_POLL_NAV:
|
||||
_send_message(CLASS_CFG, MSG_CFG_NAV_SETTINGS, nullptr, 0);
|
||||
|
|
Loading…
Reference in New Issue