mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_UAVCAN: move from HAL_NO_LOGGING to HAL_LOGGING_ENABLED
This commit is contained in:
parent
00041737d2
commit
42b1a0998f
@ -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)
|
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;
|
const auto &msg = *cb.msg;
|
||||||
if (AP::can().get_log_level() != AP_CANManager::LOG_NONE) {
|
if (AP::can().get_log_level() != AP_CANManager::LOG_NONE) {
|
||||||
// log to onboard log and mavlink
|
// log to onboard log and mavlink
|
||||||
|
Loading…
Reference in New Issue
Block a user