Whitespace

This commit is contained in:
px4dev 2012-08-21 22:30:04 -07:00
parent 5f77561ed4
commit 8c22e2a092
2 changed files with 11 additions and 8 deletions

View File

@ -296,6 +296,7 @@ HMC5883::init()
/* do I2C init (and probe) first */
ret = I2C::init();
if (ret != OK)
goto out;
@ -617,6 +618,7 @@ HMC5883::measure()
* Send the command to begin a measurement.
*/
ret = write_reg(ADDR_MODE, MODE_REG_SINGLE_MODE);
if (OK != ret)
_measure_errors++;
@ -655,6 +657,7 @@ HMC5883::collect()
/* get measurements from the device */
cmd = ADDR_DATA_OUT_X_MSB;
ret = transfer(&cmd, 1, (uint8_t *)&hmc_report, sizeof(hmc_report));
if (ret != OK) {
debug("data/status read error");
goto out;