From f26900461050afaaed0d61e76f577e859284bcfe Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 15 Jan 2020 12:40:31 +0900 Subject: [PATCH] AP_RangeFinder: fix detect for LeddarVu8 Co-Authored-By: Peter Barker --- libraries/AP_RangeFinder/AP_RangeFinder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;