We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b1640a commit e449471Copy full SHA for e449471
1 file changed
src/F_MPU6050.cpp
@@ -54,7 +54,7 @@ int MPU6050::init(calData cal, uint8_t address)
54
writeByteI2C(wire, IMUAddress, MPU6050_GYRO_CONFIG, c); // Write new GYRO_CONFIG value to register
55
56
// Set accelerometer full-scale range configuration
57
- c = readByteI2C(wire, address, MPU6050_ACCEL_CONFIG); // get current ACCEL_CONFIG register value
+ c = readByteI2C(wire, IMUAddress, MPU6050_ACCEL_CONFIG); // get current ACCEL_CONFIG register value
58
// c = c & ~0xE0; // Clear self-test bits [7:5]
59
c = c & ~0x18; // Clear AFS bits [4:3]
60
c = c | (uint8_t)3 << 3; // Set 16g full scale range for the accelerometer (11 on 4:3)
0 commit comments