mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 11:03:35 +08:00
airspeed: retry initial I2C probe 4 times
this fixes a problem with detecting a MS4525D0 at boot
This commit is contained in:
committed by
Lorenz Meier
parent
11257cbade
commit
9c58d2c5c6
@@ -146,7 +146,14 @@ out:
|
||||
int
|
||||
Airspeed::probe()
|
||||
{
|
||||
return measure();
|
||||
/* on initial power up the device needs more than one retry
|
||||
for detection. Once it is running then retries aren't
|
||||
needed
|
||||
*/
|
||||
_retries = 4;
|
||||
int ret = measure();
|
||||
_retries = 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user