mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_RangeFinder: add comment about no break at LEDDARONE_MODBUS_INIT case
This commit is contained in:
parent
0eeca3ee0b
commit
3b8d36314c
@ -62,6 +62,9 @@ bool AP_RangeFinder_LeddarOne::get_reading(uint16_t &reading_cm)
|
||||
read_len = 0;
|
||||
modbus_status = LEDDARONE_MODBUS_PRE_SEND_REQUEST;
|
||||
|
||||
// no "break;"
|
||||
// to fall through to next state LEDDARONE_MODBUS_PRE_SEND_REQUEST immediately
|
||||
|
||||
case LEDDARONE_MODBUS_PRE_SEND_REQUEST:
|
||||
// send a request message for Modbus function 4
|
||||
if (send_request() != LEDDARONE_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user