diff --git a/libraries/AP_Baro/AP_Baro_KellerLD.cpp b/libraries/AP_Baro/AP_Baro_KellerLD.cpp index eefec7c338..9893d80c26 100644 --- a/libraries/AP_Baro/AP_Baro_KellerLD.cpp +++ b/libraries/AP_Baro/AP_Baro_KellerLD.cpp @@ -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; }