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

View File

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