diff --git a/src/main/sensors/gyro.c b/src/main/sensors/gyro.c index 8c903c721a..4af4a0971f 100644 --- a/src/main/sensors/gyro.c +++ b/src/main/sensors/gyro.c @@ -179,12 +179,8 @@ static void gyroInitLowpassFilterLpf(gyroSensor_t *gyroSensor, int slot, int typ PG_REGISTER_WITH_RESET_TEMPLATE(gyroConfig_t, gyroConfig, PG_GYRO_CONFIG, 2); #ifndef GYRO_CONFIG_USE_GYRO_DEFAULT -#ifdef USE_DUAL_GYRO -#define GYRO_CONFIG_USE_GYRO_DEFAULT GYRO_CONFIG_USE_GYRO_BOTH -#else #define GYRO_CONFIG_USE_GYRO_DEFAULT GYRO_CONFIG_USE_GYRO_1 #endif -#endif PG_RESET_TEMPLATE(gyroConfig_t, gyroConfig, .gyro_align = ALIGN_DEFAULT, diff --git a/src/main/target/SPRACINGF7DUAL/target.h b/src/main/target/SPRACINGF7DUAL/target.h index bc738e19fa..4919d32bb5 100644 --- a/src/main/target/SPRACINGF7DUAL/target.h +++ b/src/main/target/SPRACINGF7DUAL/target.h @@ -76,6 +76,8 @@ #define ACC_1_ALIGN ACC_MPU6500_1_ALIGN #define ACC_2_ALIGN ACC_MPU6500_2_ALIGN +#define GYRO_CONFIG_USE_GYRO_DEFAULT GYRO_CONFIG_USE_GYRO_BOTH + #define USE_BARO #define USE_BARO_BMP280 #define USE_BARO_MS5611