mirror of https://github.com/ArduPilot/ardupilot
AP_WheelEncoder: allow compilation with HAL_LOGGING_ENABLED false
This commit is contained in:
parent
03be6e13b7
commit
9de01998c3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue