From 4ae3ad555d6f4376ad596ceabc4049ddfb7f7933 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 12 Aug 2021 13:38:17 +1000 Subject: [PATCH] AP_Arming: add and use HAL_BUTTON_ENABLE --- libraries/AP_Arming/AP_Arming.cpp | 2 ++ 1 file changed, 2 insertions(+) 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;