From 6627c1f4e4150feac704a409a8d08f39ea23caf5 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 14 Jul 2023 10:58:05 +1000 Subject: [PATCH] AP_Follow: allow compilation with HAL_LOGGING_ENABLED false --- libraries/AP_Follow/AP_Follow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Follow/AP_Follow.cpp b/libraries/AP_Follow/AP_Follow.cpp index 274ddf4d93..a06b922fea 100644 --- a/libraries/AP_Follow/AP_Follow.cpp +++ b/libraries/AP_Follow/AP_Follow.cpp @@ -395,8 +395,9 @@ void AP_Follow::handle_msg(const mavlink_message_t &msg) break; } } - + if (updated) { +#if HAL_LOGGING_ENABLED // get estimated location and velocity Location loc_estimate{}; Vector3f vel_estimate; @@ -431,6 +432,7 @@ void AP_Follow::handle_msg(const mavlink_message_t &msg) loc_estimate.lng, loc_estimate.alt ); +#endif } }