Skip to content

Commit e449471

Browse files
committed
consistency
1 parent 2b1640a commit e449471

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/F_MPU6050.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ int MPU6050::init(calData cal, uint8_t address)
5454
writeByteI2C(wire, IMUAddress, MPU6050_GYRO_CONFIG, c); // Write new GYRO_CONFIG value to register
5555

5656
// Set accelerometer full-scale range configuration
57-
c = readByteI2C(wire, address, MPU6050_ACCEL_CONFIG); // get current ACCEL_CONFIG register value
57+
c = readByteI2C(wire, IMUAddress, MPU6050_ACCEL_CONFIG); // get current ACCEL_CONFIG register value
5858
// c = c & ~0xE0; // Clear self-test bits [7:5]
5959
c = c & ~0x18; // Clear AFS bits [4:3]
6060
c = c | (uint8_t)3 << 3; // Set 16g full scale range for the accelerometer (11 on 4:3)

0 commit comments

Comments
 (0)