Increase the number of I2C retries.

This commit is contained in:
px4dev 2013-01-26 17:10:04 -08:00
parent 33c12d13ad
commit 621063ac08
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ HMC5883::probe()
read_reg(ADDR_ID_C, data[2])) read_reg(ADDR_ID_C, data[2]))
debug("read_reg fail"); debug("read_reg fail");
_retries = 1; _retries = 2;
if ((data[0] != ID_A_WHO_AM_I) || if ((data[0] != ID_A_WHO_AM_I) ||
(data[1] != ID_B_WHO_AM_I) || (data[1] != ID_B_WHO_AM_I) ||