mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
AP_BARO: Fix zero as nullptr in KellerLD
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
e137698a4a
commit
e1b6ef3e14
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user