diff --git a/libraries/AP_RangeFinder/AP_RangeFinder.cpp b/libraries/AP_RangeFinder/AP_RangeFinder.cpp index 6ef2751463..ddde2a2612 100644 --- a/libraries/AP_RangeFinder/AP_RangeFinder.cpp +++ b/libraries/AP_RangeFinder/AP_RangeFinder.cpp @@ -498,7 +498,7 @@ void RangeFinder::detect_instance(uint8_t instance, uint8_t& serial_instance) } break; case Type::LeddarVu8_Serial: - if (AP_RangeFinder_Lanbao::detect(serial_instance)) { + if (AP_RangeFinder_LeddarVu8::detect(serial_instance)) { drivers[instance] = new AP_RangeFinder_LeddarVu8(state[instance], params[instance], serial_instance++); } break;