Browse Source

AP_Arming: Cope with new AP_GPS::first_unconfigured_gps

master
Michael du Breuil 6 years ago committed by Andrew Tridgell
parent
commit
4b2cb45ac0
  1. 4
      libraries/AP_Arming/AP_Arming.cpp

4
libraries/AP_Arming/AP_Arming.cpp

@ -448,8 +448,8 @@ bool AP_Arming::gps_checks(bool report) @@ -448,8 +448,8 @@ bool AP_Arming::gps_checks(bool report)
}
if ((checks_to_perform & ARMING_CHECK_ALL) || (checks_to_perform & ARMING_CHECK_GPS_CONFIG)) {
const uint8_t first_unconfigured = gps.first_unconfigured_gps();
if (first_unconfigured != AP_GPS::GPS_ALL_CONFIGURED) {
uint8_t first_unconfigured;
if (gps.first_unconfigured_gps(first_unconfigured)) {
check_failed(ARMING_CHECK_GPS_CONFIG,
report,
"GPS %d failing configuration checks",

Loading…
Cancel
Save