From 97a04c85f0e27b33063ab95afc9e1e5829c0deb3 Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Thu, 22 Jul 2021 22:22:17 +0530 Subject: [PATCH] AP_EFI: use separate register_driver method while contructing CAN Driver --- libraries/AP_EFI/AP_EFI_NWPMU.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_EFI/AP_EFI_NWPMU.cpp b/libraries/AP_EFI/AP_EFI_NWPMU.cpp index df541a8463..8918a7c47c 100644 --- a/libraries/AP_EFI/AP_EFI_NWPMU.cpp +++ b/libraries/AP_EFI/AP_EFI_NWPMU.cpp @@ -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)