From 9de01998c39b9c905205c740319b005ec8839f6c Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 14 Jul 2023 10:58:09 +1000 Subject: [PATCH] AP_WheelEncoder: allow compilation with HAL_LOGGING_ENABLED false --- libraries/AP_WheelEncoder/AP_WheelEncoder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_WheelEncoder/AP_WheelEncoder.cpp b/libraries/AP_WheelEncoder/AP_WheelEncoder.cpp index 2ca8cde3a3..610a7cd8e2 100644 --- a/libraries/AP_WheelEncoder/AP_WheelEncoder.cpp +++ b/libraries/AP_WheelEncoder/AP_WheelEncoder.cpp @@ -201,6 +201,7 @@ void AP_WheelEncoder::update(void) } } +#if HAL_LOGGING_ENABLED // log wheel encoder information void AP_WheelEncoder::Log_Write() const { @@ -219,6 +220,7 @@ void AP_WheelEncoder::Log_Write() const }; AP::logger().WriteBlock(&pkt, sizeof(pkt)); } +#endif // check if an instance is healthy bool AP_WheelEncoder::healthy(uint8_t instance) const