Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyoung committed Mar 27, 2020
1 parent 17663a7 commit 1da9536
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icm20948/icm20948.go
Expand Up @@ -542,7 +542,7 @@ func (mpu *ICM20948) SetGyroLPF(rate byte) (err error) {
r = BITS_DLPF_GYRO_CFG_6HZ
}

cfg = cfg & 0x01
cfg |= 0x01
cfg |= r

errWrite := mpu.i2cWrite(ICMREG_GYRO_CONFIG, cfg)
Expand Down Expand Up @@ -583,7 +583,7 @@ func (mpu *ICM20948) SetAccelLPF(rate byte) (err error) {
r = BITS_DLPF_ACCEL_CFG_5HZ
}

cfg = cfg & 0x01
cfg |= 0x01
cfg |= r

errWrite := mpu.i2cWrite(ICMREG_ACCEL_CONFIG, cfg)
Expand Down

0 comments on commit 1da9536

Please sign in to comment.