mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
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
|
// 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
|
||||||
|
Loading…
Reference in New Issue
Block a user