Browse Source

AP_RangeFinder: typo fix for LeddarOne

c415-sdk
Randy Mackay 5 years ago committed by Andrew Tridgell
parent
commit
e5c3a7f7b5
  1. 2
      libraries/AP_RangeFinder/AP_RangeFinder_LeddarOne.cpp

2
libraries/AP_RangeFinder/AP_RangeFinder_LeddarOne.cpp

@ -160,7 +160,7 @@ LeddarOne_Status AP_RangeFinder_LeddarOne::parse_response(uint8_t &number_detect @@ -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…
Cancel
Save