mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 11:38:56 +08:00
ms4525do: Fix logic error in probe function
This commit is contained in:
committed by
Eric Katzfey
parent
e2708705a8
commit
8d352cd8e0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user