diff --git a/libraries/AP_DroneCAN/AP_DroneCAN.cpp b/libraries/AP_DroneCAN/AP_DroneCAN.cpp index 1d7c68b0a7..ffd411d4a2 100644 --- a/libraries/AP_DroneCAN/AP_DroneCAN.cpp +++ b/libraries/AP_DroneCAN/AP_DroneCAN.cpp @@ -168,7 +168,7 @@ AP_DroneCAN::~AP_DroneCAN() AP_DroneCAN *AP_DroneCAN::get_dronecan(uint8_t driver_index) { if (driver_index >= AP::can().get_num_drivers() || - AP::can().get_driver_type(driver_index) != AP_CANManager::Driver_Type_DroneCAN) { + AP::can().get_driver_type(driver_index) != AP_CAN::Protocol::DroneCAN) { return nullptr; } return static_cast(AP::can().get_driver(driver_index));