mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
ms4525do: Fix logic error in probe function
This commit is contained in:
parent
e2708705a8
commit
8d352cd8e0
@ -5,6 +5,7 @@ CONFIG_DRIVERS_BAROMETER_INVENSENSE_ICP101XX=y
|
||||
CONFIG_DRIVERS_BAROMETER_MS5611=y
|
||||
CONFIG_DRIVERS_BAROMETER_BMP280=y
|
||||
CONFIG_DRIVERS_BAROMETER_BMP388=y
|
||||
CONFIG_DRIVERS_DIFFERENTIAL_PRESSURE_MS4525DO=y
|
||||
CONFIG_DRIVERS_DISTANCE_SENSOR_VL53L0X=y
|
||||
CONFIG_DRIVERS_DISTANCE_SENSOR_VL53L1X=y
|
||||
CONFIG_DRIVERS_GPS=y
|
||||
|
||||
@ -70,7 +70,7 @@ int MS4525DO::probe()
|
||||
|
||||
if ((status_1 == (uint8_t)STATUS::Normal_Operation)
|
||||
&& (status_2 == (uint8_t)STATUS::Stale_Data)
|
||||
&& (data_1[2] == data_1[2])) {
|
||||
&& (data_1[2] == data_2[2])) {
|
||||
|
||||
_retries = 1; // enable retries during operation
|
||||
return PX4_OK;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user