mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 12:14:10 -04:00
AP_HAL: AP_HAL_Linux: add comment to I2CDevice::transfer()
If I2CDevice::transfer() has to do nothing it returns false. This can be misleading, as this might feel contradictory. Let's spend a comment on that. Signed-off-by: Ralf Ramsauer <ralf.ramsauer@othr.de>
This commit is contained in:
parent
25c7e8bf60
commit
5b81920737
@ -168,6 +168,7 @@ bool I2CDevice::transfer(const uint8_t *send, uint32_t send_len,
|
||||
nmsgs++;
|
||||
}
|
||||
|
||||
/* interpret it as an input error if nothing has to be done */
|
||||
if (!nmsgs) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user