diff options
-rw-r--r-- | src/driver/mpu9250.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/driver/mpu9250.cc b/src/driver/mpu9250.cc index e34a4a7..bef086f 100644 --- a/src/driver/mpu9250.cc +++ b/src/driver/mpu9250.cc @@ -89,6 +89,7 @@ void MPU9250::setGyroFSR(MPU9250::gyro_fsr_e fsr) txbuf[0] = MPU9250_GYRO_CONFIG; txbuf[1] = fsr << GYRO_CONFIG_GYRO_FS_SEL; i2c.xmit(address, 2, txbuf, 0, rxbuf); + gyro_fsr = fsr; } void MPU9250::setAccelFSR(MPU9250::accel_fsr_e fsr) @@ -96,6 +97,7 @@ void MPU9250::setAccelFSR(MPU9250::accel_fsr_e fsr) txbuf[0] = MPU9250_ACCEL_CONFIG; txbuf[1] = fsr << ACCEL_CONFIG_ACCEL_FS_SEL; i2c.xmit(address, 2, txbuf, 0, rxbuf); + accel_fsr = fsr; } void MPU9250::AGSleep() |