AP_WheelEncoder: allow compilation with HAL_LOGGING_ENABLED false

This commit is contained in:
Peter Barker 2023-07-14 10:58:09 +10:00 committed by Andrew Tridgell
parent 03be6e13b7
commit 9de01998c3

View File

@ -201,6 +201,7 @@ void AP_WheelEncoder::update(void)
} }
} }
#if HAL_LOGGING_ENABLED
// log wheel encoder information // log wheel encoder information
void AP_WheelEncoder::Log_Write() const void AP_WheelEncoder::Log_Write() const
{ {
@ -219,6 +220,7 @@ void AP_WheelEncoder::Log_Write() const
}; };
AP::logger().WriteBlock(&pkt, sizeof(pkt)); AP::logger().WriteBlock(&pkt, sizeof(pkt));
} }
#endif
// check if an instance is healthy // check if an instance is healthy
bool AP_WheelEncoder::healthy(uint8_t instance) const bool AP_WheelEncoder::healthy(uint8_t instance) const