AP_Arming: add define AP_AIRSPEED_ENABLED

This commit is contained in:
Josh Henderson 2021-11-01 04:08:26 -04:00 committed by Andrew Tridgell
parent 8a6942a9df
commit f38c5d9c31
1 changed files with 2 additions and 0 deletions

View File

@ -226,6 +226,7 @@ bool AP_Arming::barometer_checks(bool report)
bool AP_Arming::airspeed_checks(bool report)
{
#if AP_AIRSPEED_ENABLED
if ((checks_to_perform & ARMING_CHECK_ALL) ||
(checks_to_perform & ARMING_CHECK_AIRSPEED)) {
const AP_Airspeed *airspeed = AP_Airspeed::get_singleton();
@ -240,6 +241,7 @@ bool AP_Arming::airspeed_checks(bool report)
}
}
}
#endif
return true;
}