AP_DroneCAN: move and rename CAN Driver_Type enumeration

This commit is contained in:
Peter Barker 2023-04-18 17:24:17 +10:00 committed by Peter Barker
parent fea2c8d923
commit 80752af077

View File

@ -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_DroneCAN*>(AP::can().get_driver(driver_index));