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
1 changed files with 2 additions and 0 deletions

View File

@ -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