Skip to content

Commit

Permalink
Remove 0x80 for writing operations
Browse files Browse the repository at this point in the history
  • Loading branch information
deiteris committed Oct 8, 2022
1 parent 1b68818 commit 48fafb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mpu9250/MPU9250.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3325,7 +3325,7 @@ void MPU9250_Base::initilaizeMagnetometer() {
setI2CMasterModeEnabled(true);

// Set the I2C slave address of QMC5883L and set for write.
I2Cdev::writeByte(devAddr, MPU9250_RA_I2C_SLV0_ADDR, 0x0D|0x80);
I2Cdev::writeByte(devAddr, MPU9250_RA_I2C_SLV0_ADDR, 0x0D);
// I2C slave 0 register address from where to begin data transfer
I2Cdev::writeByte(devAddr, MPU9250_RA_I2C_SLV0_REG, 0x0B);
// Enable QMC5883L
Expand All @@ -3335,7 +3335,7 @@ void MPU9250_Base::initilaizeMagnetometer() {
delay(50);

// Set the I2C slave address of QMC5883: and set for write.
I2Cdev::writeByte(devAddr, MPU9250_RA_I2C_SLV0_ADDR, 0x0D|0x80);
I2Cdev::writeByte(devAddr, MPU9250_RA_I2C_SLV0_ADDR, 0x0D);
// I2C slave 0 register address from where to begin data transfer
I2Cdev::writeByte(devAddr, MPU9250_RA_I2C_SLV0_REG, 0x09);
// Start measurements in continuous mode 200hz
Expand Down

0 comments on commit 48fafb0

Please sign in to comment.