Skip to content

Commit 8bb4031

Browse files
committed
more consistency
1 parent e449471 commit 8bb4031

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/F_ICM20689.cpp

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

5656
// Set accelerometer full-scale range configuration
57-
c = readByteI2C(wire, address, ICM20689_ACCEL_CONFIG); // get current ACCEL_CONFIG register value
57+
c = readByteI2C(wire, IMUAddress, ICM20689_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 full scale range for the accelerometer (11 on 4:3)

src/F_ICM20690.cpp

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

5656
// Set accelerometer full-scale range configuration
57-
c = readByteI2C(wire, address, ICM20690_ACCEL_CONFIG); // get current ACCEL_CONFIG register value
57+
c = readByteI2C(wire, IMUAddress, ICM20690_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 full scale range for the accelerometer (11 on 4:3)

0 commit comments

Comments
 (0)