diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index 47926aac95..b6620318e3 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -876,11 +876,13 @@ bool AP_Arming::system_checks(bool report) return false; } #endif +#if HAL_BUTTON_ENABLED const auto &button = AP::button(); if (!button.arming_checks(sizeof(buffer), buffer)) { check_failed(ARMING_CHECK_PARAMETERS, report, "%s", buffer); return false; } +#endif } return true;