mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
AP_RangeFinder: typo fix for LeddarOne
This commit is contained in:
parent
266a908b83
commit
e5c3a7f7b5
@ -160,7 +160,7 @@ LeddarOne_Status AP_RangeFinder_LeddarOne::parse_response(uint8_t &number_detect
|
||||
}
|
||||
}
|
||||
|
||||
// lead_len is not 25 byte or function code is not 0x04
|
||||
// read_len is not 25 byte or function code is not 0x04
|
||||
if (read_len != LEDDARONE_READ_BUFFER_SIZE || read_buffer[1] != LEDDARONE_MODOBUS_FUNCTION_CODE) {
|
||||
return LEDDARONE_STATE_ERR_BAD_RESPONSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user