mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_DroneCAN: move and rename CAN Driver_Type enumeration
This commit is contained in:
parent
fea2c8d923
commit
80752af077
@ -168,7 +168,7 @@ AP_DroneCAN::~AP_DroneCAN()
|
|||||||
AP_DroneCAN *AP_DroneCAN::get_dronecan(uint8_t driver_index)
|
AP_DroneCAN *AP_DroneCAN::get_dronecan(uint8_t driver_index)
|
||||||
{
|
{
|
||||||
if (driver_index >= AP::can().get_num_drivers() ||
|
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 nullptr;
|
||||||
}
|
}
|
||||||
return static_cast<AP_DroneCAN*>(AP::can().get_driver(driver_index));
|
return static_cast<AP_DroneCAN*>(AP::can().get_driver(driver_index));
|
||||||
|
Loading…
Reference in New Issue
Block a user