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:
Peter Barker 2020-12-02 21:03:15 +11:00 committed by Andrew Tridgell
parent 64e1784cb7
commit 771666ee52

View File

@ -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;
}