AP_PiccoloCAN: 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 04feb98091
commit 34a02fcda9
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ AP_PiccoloCAN::AP_PiccoloCAN()
AP_PiccoloCAN *AP_PiccoloCAN::get_pcan(uint8_t driver_index) AP_PiccoloCAN *AP_PiccoloCAN::get_pcan(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_PiccoloCAN) { AP::can().get_driver_type(driver_index) != AP_CAN::Protocol::PiccoloCAN) {
return nullptr; return nullptr;
} }