AP_RangeFinder: use separate register_driver method while contructing CAN Driver

This commit is contained in:
bugobliterator 2021-07-22 22:22:29 +05:30 committed by Randy Mackay
parent d27acbce2d
commit cc4fc42ed0

View File

@ -7,9 +7,10 @@
constructor constructor
*/ */
AP_RangeFinder_USD1_CAN::AP_RangeFinder_USD1_CAN(RangeFinder::RangeFinder_State &_state, AP_RangeFinder_Params &_params) : AP_RangeFinder_USD1_CAN::AP_RangeFinder_USD1_CAN(RangeFinder::RangeFinder_State &_state, AP_RangeFinder_Params &_params) :
CANSensor("USD1", AP_CANManager::Driver_Type_USD1), CANSensor("USD1"),
AP_RangeFinder_Backend(_state, _params) AP_RangeFinder_Backend(_state, _params)
{ {
register_driver(AP_CANManager::Driver_Type_USD1);
} }
// update state // update state