Skip to content

Commit 2a2c2cf

Browse files
committed
fix(qmc5883p): use continuous mode instead of normal
1 parent 1ef9d16 commit 2a2c2cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_QMC5883P.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ bool WipperSnapper_I2C_Driver_QMC5883P::begin() {
2525
return false;
2626
}
2727

28-
// Set to normal mode
29-
_qmc->setMode(QMC5883P_MODE_NORMAL);
28+
// Set to continuous mode
29+
_qmc->setMode(QMC5883P_MODE_CONTINUOUS);
3030
// Set ODR (Output Data Rate) to 50Hz
3131
_qmc->setODR(QMC5883P_ODR_50HZ);
3232
// Set OSR (Over Sample Ratio) to 4

0 commit comments

Comments
 (0)