From 4e15531c87ace110210b917add5ba39532eaa518 Mon Sep 17 00:00:00 2001 From: Siddharth Purohit Date: Sun, 20 Jun 2021 16:11:01 +0530 Subject: [PATCH] GCS_MAVLink: Use HAL_CANMANAGER_ENABLED instead of HAL_ENABLE_LIBUAVCAN_DRIVERS --- libraries/GCS_MAVLink/GCS_Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 3faa460df1..53eebff74d 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -3813,7 +3813,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_run_prearm_checks(const mavlink_command_l MAV_RESULT GCS_MAVLINK::handle_command_preflight_can(const mavlink_command_long_t &packet) { -#if HAL_MAX_CAN_PROTOCOL_DRIVERS +#if HAL_CANMANAGER_ENABLED if (hal.util->get_soft_armed()) { // *preflight*, remember? return MAV_RESULT_TEMPORARILY_REJECTED;