AP_Baro: correct i2c transfer invocation in KellerLD
This allows the device to work on boards which are not Pixhawk1. For reasons yet to be determined.
This commit is contained in:
parent
64e1784cb7
commit
771666ee52
@ -166,7 +166,7 @@ bool AP_Baro_KellerLD::_init()
|
||||
bool AP_Baro_KellerLD::_read()
|
||||
{
|
||||
uint8_t data[5];
|
||||
if (!_dev->transfer(nullptr, 1, data, sizeof(data))) {
|
||||
if (!_dev->transfer(nullptr, 0, data, sizeof(data))) {
|
||||
Debug("Keller LD read failed!");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user