1
0
Fork 0
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:
Dominic Clifton 2014-10-16 00:57:44 +01:00
parent 8f9a553a9e
commit f5895b762f

View file

@ -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