Skip to content

Commit 826e48f

Browse files
committed
(lsm6 disable i2c)
1 parent 2638c97 commit 826e48f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

firmware-g473/Core/User/lsm6.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ void Lsm6Configure(
2121
SensorInputWriteImuReg(
2222
static_cast<uint8_t>(Lsm6Reg::CTRL2_G),
2323
(static_cast<uint8_t>(data_rate) << 4) | (static_cast<uint8_t>(gyro_full_scale) << 0));
24+
SensorInputWriteImuReg(
25+
static_cast<uint8_t>(Lsm6Reg::CTRL4_C),
26+
0b00000100); // I2C_disable
2427
SensorInputWriteImuReg(
2528
static_cast<uint8_t>(Lsm6Reg::INT2_CTRL),
2629
0b00000011); // INT2_DRDY_G, INT2_DRDY_XL

0 commit comments

Comments
 (0)