AP_EFI: use separate register_driver method while contructing CAN Driver

This commit is contained in:
bugobliterator 2021-07-22 22:22:17 +05:30 committed by Andrew Tridgell
parent 36b3fcc1a0
commit 97a04c85f0
1 changed files with 2 additions and 1 deletions

View File

@ -26,9 +26,10 @@
extern const AP_HAL::HAL& hal;
AP_EFI_NWPMU::AP_EFI_NWPMU(AP_EFI &_frontend) :
CANSensor("NWPMU", AP_CANManager::Driver_Type_EFI_NWPMU),
CANSensor("NWPMU"),
AP_EFI_Backend(_frontend)
{
register_driver(AP_CANManager::Driver_Type_EFI_NWPMU);
}
void AP_EFI_NWPMU::handle_frame(AP_HAL::CANFrame &frame)