From eccdf2d4a56efd03e8a8cf3d8056e91568406355 Mon Sep 17 00:00:00 2001 From: Martin Budden Date: Sat, 23 Dec 2017 15:47:56 +0000 Subject: [PATCH] Set gyro overflow checking default to true (#4826) --- src/main/sensors/gyro.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/main/sensors/gyro.c b/src/main/sensors/gyro.c index aff93ea66..17c8320ce 100644 --- a/src/main/sensors/gyro.c +++ b/src/main/sensors/gyro.c @@ -129,16 +129,6 @@ static void gyroInitSensorFilters(gyroSensor_t *gyroSensor); #define GYRO_SYNC_DENOM_DEFAULT 4 #endif -#if (defined(USE_GYRO_SPI_MPU6500) \ - || defined(USE_GYRO_SPI_MPU9250) \ - || defined(USE_GYRO_SPI_ICM20601) \ - || defined(USE_GYRO_SPI_ICM20649) \ - || defined(USE_GYRO_SPI_ICM20689)) -#define GYRO_CHECK_OVERFLOW_DEFAULT true -#else -#define GYRO_CHECK_OVERFLOW_DEFAULT false -#endif - PG_REGISTER_WITH_RESET_TEMPLATE(gyroConfig_t, gyroConfig, PG_GYRO_CONFIG, 1); PG_RESET_TEMPLATE(gyroConfig_t, gyroConfig, @@ -155,7 +145,7 @@ PG_RESET_TEMPLATE(gyroConfig_t, gyroConfig, .gyro_soft_notch_cutoff_1 = 300, .gyro_soft_notch_hz_2 = 200, .gyro_soft_notch_cutoff_2 = 100, - .checkOverflow = GYRO_CHECK_OVERFLOW_DEFAULT + .checkOverflow = true );