1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

Merge pull request #4842 from mikeller/fix_gyro_icm20689_init

Fixed ICM20689 gyro init.
This commit is contained in:
Michael Keller 2017-12-25 13:53:27 +13:00 committed by GitHub
commit ffe43ed8ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ void icm20689GyroInit(gyroDev_t *gyro)
// delay(100);
spiBusWriteRegister(&gyro->bus, MPU_RA_PWR_MGMT_1, INV_CLK_PLL);
delay(15);
uint8_t raGyroConfigData = gyro->gyroRateKHz = INV_FSR_2000DPS << 3;
uint8_t raGyroConfigData = INV_FSR_2000DPS << 3;
if (gyro->gyroRateKHz > GYRO_RATE_8_kHz) {
// use otherwise redundant LPF value to configure FCHOICE_B
// see REGISTER 27 GYROSCOPE CONFIGURATION in datasheet