Browse Source

Increase the number of I2C retries.

sbg
px4dev 12 years ago
parent
commit
621063ac08
  1. 2
      apps/drivers/hmc5883/hmc5883.cpp

2
apps/drivers/hmc5883/hmc5883.cpp

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

Loading…
Cancel
Save