Fix SPI speed for MPU6000 for CC3D target and some new targets
This commit is contained in:
parent
bdaf8ecbb9
commit
9000decdf7
|
@ -132,6 +132,8 @@ void mpu6000SpiGyroInit(uint8_t lpf)
|
|||
mpu6000WriteRegister(MPU6000_CONFIG, lpf);
|
||||
delayMicroseconds(1);
|
||||
|
||||
spiSetDivisor(MPU6000_SPI_INSTANCE, SPI_18MHZ_CLOCK_DIVIDER); // 18 MHz SPI clock
|
||||
|
||||
int16_t data[3];
|
||||
mpuGyroRead(data);
|
||||
|
||||
|
|
Loading…
Reference in New Issue