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 Andrew Tridgell
parent 59242739c7
commit 98f5eb28db
1 changed files with 2 additions and 1 deletions

View File

@ -7,9 +7,10 @@
constructor
*/
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)
{
register_driver(AP_CANManager::Driver_Type_USD1);
}
// update state