I2C airspeed driver needs 2 retries

this prevents I2C transfer errors every few seconds with the
meas_airspeed driver
This commit is contained in:
Andrew Tridgell 2013-08-28 18:26:21 +10:00 committed by Lorenz Meier
parent 935ed2fe49
commit 76a9e34e08
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ Airspeed::probe()
*/ */
_retries = 4; _retries = 4;
int ret = measure(); int ret = measure();
_retries = 0; _retries = 2;
return ret; return ret;
} }