AP_BARO: Fix zero as nullptr in KellerLD

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2020-08-07 15:46:25 -03:00 committed by Peter Barker
parent e137698a4a
commit e1b6ef3e14

View File

@ -166,7 +166,7 @@ bool AP_Baro_KellerLD::_init()
bool AP_Baro_KellerLD::_read()
{
uint8_t data[5];
if (!_dev->transfer(0x0, 1, data, sizeof(data))) {
if (!_dev->transfer(nullptr, 1, data, sizeof(data))) {
Debug("Keller LD read failed!");
return false;
}