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