AP_UAVCAN: move from HAL_NO_LOGGING to HAL_LOGGING_ENABLED

This commit is contained in:
Peter Barker 2021-05-17 16:51:37 +10:00 committed by Andrew Tridgell
parent 00041737d2
commit 42b1a0998f
1 changed files with 1 additions and 1 deletions

View File

@ -821,7 +821,7 @@ bool AP_UAVCAN::is_esc_data_index_valid(const uint8_t index) {
*/
void AP_UAVCAN::handle_debug(AP_UAVCAN* ap_uavcan, uint8_t node_id, const DebugCb &cb)
{
#ifndef HAL_NO_LOGGING
#if HAL_LOGGING_ENABLED
const auto &msg = *cb.msg;
if (AP::can().get_log_level() != AP_CANManager::LOG_NONE) {
// log to onboard log and mavlink