Browse Source

HMC5883: Do not spam the console on error and make everything worse.

sbg
Lorenz Meier 11 years ago
parent
commit
071f9c648b
  1. 4
      src/drivers/hmc5883/hmc5883.cpp

4
src/drivers/hmc5883/hmc5883.cpp

@ -715,7 +715,7 @@ HMC5883::cycle()
/* perform collection */ /* perform collection */
if (OK != collect()) { if (OK != collect()) {
log("collection error"); debug("collection error");
/* restart the measurement state machine */ /* restart the measurement state machine */
start(); start();
return; return;
@ -742,7 +742,7 @@ HMC5883::cycle()
/* measurement phase */ /* measurement phase */
if (OK != measure()) if (OK != measure())
log("measure error"); debug("measure error");
/* next phase is collection */ /* next phase is collection */
_collect_phase = true; _collect_phase = true;

Loading…
Cancel
Save