From dc692f716981b05dfdf1c1557059b99c16422d6e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 16 Apr 2024 21:07:18 +1000 Subject: [PATCH] AP_Arming: exclude body of AP_Arming.cpp based on AP_ARMING_ENABLED --- libraries/AP_Arming/AP_Arming.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index c834d51de1..5b1bd0d2f9 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -13,6 +13,10 @@ along with this program. If not, see . */ +#include "AP_Arming_config.h" + +#if AP_ARMING_ENABLED + #include "AP_Arming.h" #include #include @@ -2042,3 +2046,5 @@ AP_Arming &arming() }; #pragma GCC diagnostic pop + +#endif // AP_ARMING_ENABLED