mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-12 10:58:30 -04:00
AP_EFI: use separate register_driver method while contructing CAN Driver
This commit is contained in:
parent
36b3fcc1a0
commit
97a04c85f0
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user