Skip to content

Commit

Permalink
Do not change mode to read temperature
Browse files Browse the repository at this point in the history
The mode change was not necessary and in fact caused the chip to not update the registerfile resulting in MAG timeouts
  • Loading branch information
David Sidrane authored and bkueng committed Mar 12, 2018
1 parent bb6802a commit de93683
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/drivers/imu/fxos8701cq/fxos8701cq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1393,9 +1393,7 @@ FXOS8701CQ::measure()
* one device to the next
*/

write_checked_reg(FXOS8701CQ_M_CTRL_REG1, M_CTRL_REG1_HMS_A | M_CTRL_REG1_OS(7));
_last_temperature = (read_reg(FXOS8701CQ_TEMP)) * 0.96f;
write_checked_reg(FXOS8701CQ_M_CTRL_REG1, M_CTRL_REG1_HMS_AM | M_CTRL_REG1_OS(7));

accel_report.temperature = _last_temperature;

Expand Down

0 comments on commit de93683

Please sign in to comment.