From 9a7974f8d2525fc1a9771311c9dc2e323070bd67 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 bb7dedc03aae7..274ddf4d935c2 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 f5aa2dae54d46..2621dd698fc99 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