AP_Arming: exclude body of AP_Arming.cpp based on AP_ARMING_ENABLED

This commit is contained in:
Peter Barker 2024-04-16 21:07:18 +10:00 committed by Andrew Tridgell
parent 8c5136e06d
commit dc692f7169
1 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "AP_Arming_config.h"
#if AP_ARMING_ENABLED
#include "AP_Arming.h"
#include <AP_HAL/AP_HAL.h>
#include <AP_BoardConfig/AP_BoardConfig.h>
@ -2042,3 +2046,5 @@ AP_Arming &arming()
};
#pragma GCC diagnostic pop
#endif // AP_ARMING_ENABLED