ms4525do: Fix logic error in probe function

This commit is contained in:
Eric Katzfey 2026-02-21 16:03:44 -07:00 committed by Eric Katzfey
parent e2708705a8
commit 8d352cd8e0
2 changed files with 2 additions and 1 deletions

View File

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

View File

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