From 26b7092c1ac6acc55d2d455d36d3f60dae38cea4 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 4 Sep 2023 20:05:11 +1000 Subject: [PATCH] ArduCopter: correct logging when rally disabled --- ArduCopter/AP_Rally.cpp | 6 ++++++ ArduCopter/AP_Rally.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ArduCopter/AP_Rally.cpp b/ArduCopter/AP_Rally.cpp index 31027d7909..46b6735f56 100644 --- a/ArduCopter/AP_Rally.cpp +++ b/ArduCopter/AP_Rally.cpp @@ -13,6 +13,10 @@ along with this program. If not, see . */ +#include + +#if HAL_RALLY_ENABLED + #include #include "Copter.h" @@ -28,3 +32,5 @@ bool AP_Rally_Copter::is_valid(const Location &rally_point) const #endif return true; } + +#endif // HAL_RALLY_ENABLED diff --git a/ArduCopter/AP_Rally.h b/ArduCopter/AP_Rally.h index 466f5c04b9..27c3df857a 100644 --- a/ArduCopter/AP_Rally.h +++ b/ArduCopter/AP_Rally.h @@ -14,6 +14,10 @@ */ #pragma once +#include + +#if HAL_RALLY_ENABLED + #include #include @@ -28,3 +32,5 @@ public: private: bool is_valid(const Location &rally_point) const override; }; + +#endif // HAL_RALLY_ENABLED