mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
NAZE32_SP - Enable MPU6500 driver.
This commit is contained in:
parent
8f9a553a9e
commit
f5895b762f
1 changed files with 2 additions and 4 deletions
|
@ -170,8 +170,7 @@ bool detectGyro(uint16_t gyroLpf)
|
|||
|
||||
#ifdef USE_GYRO_SPI_MPU6500
|
||||
#ifdef NAZE
|
||||
// TODO only enable if NAZE32_SP is detected
|
||||
if (false && mpu6500SpiGyroDetect(&gyro, gyroLpf)) {
|
||||
if (hardwareRevision == NAZE32_SP && mpu6500SpiGyroDetect(&gyro, gyroLpf)) {
|
||||
gyroAlign = CW0_DEG;
|
||||
return true;
|
||||
}
|
||||
|
@ -293,8 +292,7 @@ retry:
|
|||
#ifdef USE_ACC_SPI_MPU6500
|
||||
case ACC_SPI_MPU6500:
|
||||
#ifdef NAZE
|
||||
// TODO only enable if NAZE32_SP is detected
|
||||
if (false && mpu6500SpiAccDetect(&acc)) {
|
||||
if (hardwareRevision == NAZE32_SP && mpu6500SpiAccDetect(&acc)) {
|
||||
#else
|
||||
if (mpu6500SpiAccDetect(&acc)) {
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue