From 9a853b3d4af105da64a34030aa3930aaf2e8580c Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 10 Jan 2024 15:21:23 +1100 Subject: [PATCH] AP_WindVane: correct compilation when HAL_LOGGING_ENABLED is false --- libraries/AP_WindVane/AP_WindVane.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_WindVane/AP_WindVane.cpp b/libraries/AP_WindVane/AP_WindVane.cpp index 44845d4d46..7d336a41c5 100644 --- a/libraries/AP_WindVane/AP_WindVane.cpp +++ b/libraries/AP_WindVane/AP_WindVane.cpp @@ -372,6 +372,7 @@ void AP_WindVane::update() _direction_true = _direction_true_raw; } +#if HAL_LOGGING_ENABLED // @LoggerMessage: WIND // @Description: Windvane readings // @Field: TimeUS: Time since system startup @@ -390,6 +391,7 @@ void AP_WindVane::update() _speed_apparent_raw, _speed_apparent, _speed_true); +#endif }