From 9168a8fc500cf40ae710b96d99c3f1057f87f49f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 14 Jul 2023 10:58:06 +1000 Subject: [PATCH] AP_Math: allow compilation with HAL_LOGGING_ENABLED false --- libraries/AP_Math/SCurve.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Math/SCurve.cpp b/libraries/AP_Math/SCurve.cpp index 074b3e0603..fa907ec87c 100644 --- a/libraries/AP_Math/SCurve.cpp +++ b/libraries/AP_Math/SCurve.cpp @@ -883,6 +883,7 @@ void SCurve::calculate_path(float Sm, float Jm, float V0, float Am, float Vm, fl // @Field: t4_out: segment duration // @Field: t6_out: segment duration +#if HAL_LOGGING_ENABLED static bool logged_scve; // only log once if (!logged_scve) { logged_scve = true; @@ -906,6 +907,8 @@ void SCurve::calculate_path(float Sm, float Jm, float V0, float Am, float Vm, fl (double)t6_out ); } +#endif // HAL_LOGGING_ENABLED + #endif // APM_BUILD_COPTER_OR_HELI Jm_out = 0.0f;