GCS_MAVLink: Use HAL_CANMANAGER_ENABLED instead of HAL_ENABLE_LIBUAVCAN_DRIVERS

This commit is contained in:
Siddharth Purohit 2021-06-20 16:11:01 +05:30 committed by Andrew Tridgell
parent 3895942282
commit 4e15531c87
1 changed files with 1 additions and 1 deletions

View File

@ -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;