From cc18c82622632bd2bd715ef4aa3cada2a56570ce Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 8 Dec 2023 12:55:58 +1100 Subject: [PATCH] AP_Follow: correct defaulting of AP_FOLLOW_ENABLED and clarify a closing endif --- libraries/AP_Follow/AP_Follow.cpp | 2 +- libraries/AP_Follow/AP_Follow_config.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Follow/AP_Follow.cpp b/libraries/AP_Follow/AP_Follow.cpp index bb7dedc03a..274ddf4d93 100644 --- a/libraries/AP_Follow/AP_Follow.cpp +++ b/libraries/AP_Follow/AP_Follow.cpp @@ -539,4 +539,4 @@ AP_Follow &follow() } -#endif +#endif // AP_FOLLOW_ENABLED diff --git a/libraries/AP_Follow/AP_Follow_config.h b/libraries/AP_Follow/AP_Follow_config.h index f5aa2dae54..2621dd698f 100644 --- a/libraries/AP_Follow/AP_Follow_config.h +++ b/libraries/AP_Follow/AP_Follow_config.h @@ -1,5 +1,7 @@ #pragma once +#include + #ifndef AP_FOLLOW_ENABLED #define AP_FOLLOW_ENABLED 1 #endif