AP_RangeFinder: fix detect for LeddarVu8

Co-Authored-By: Peter Barker <pb-gh@barker.dropbear.id.au>
This commit is contained in:
Randy Mackay 2020-01-15 12:40:31 +09:00 committed by Andrew Tridgell
parent b068f15932
commit f269004610

View File

@ -498,7 +498,7 @@ void RangeFinder::detect_instance(uint8_t instance, uint8_t& serial_instance)
} }
break; break;
case Type::LeddarVu8_Serial: 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++); drivers[instance] = new AP_RangeFinder_LeddarVu8(state[instance], params[instance], serial_instance++);
} }
break; break;