5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-05 15:38:29 -04:00

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