From 459f91e7a05400716fdcfff9f0f1dc4b8340ec7c Mon Sep 17 00:00:00 2001 From: NywayZheng Date: Mon, 27 Aug 2018 22:28:06 +0800 Subject: [PATCH] Update config.c --- src/main/target/DALRCF722DUAL/config.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/target/DALRCF722DUAL/config.c b/src/main/target/DALRCF722DUAL/config.c index fa01d76ca1..f07d7206a9 100644 --- a/src/main/target/DALRCF722DUAL/config.c +++ b/src/main/target/DALRCF722DUAL/config.c @@ -31,14 +31,8 @@ void targetValidateConfiguration(void) { - if(gyroConfigMutable()->gyro_to_use == GYRO_CONFIG_USE_GYRO_2) { - if((gyroConfigMutable()->gyroMovementCalibrationThreshold ==48) && (gyroConfigMutable()->gyroMovementCalibrationThreshold !=148)) { - gyroConfigMutable()->gyroMovementCalibrationThreshold = 148; //for cli set - } - } else { - if((gyroConfigMutable()->gyroMovementCalibrationThreshold ==148) && (gyroConfigMutable()->gyroMovementCalibrationThreshold !=48)) { - gyroConfigMutable()->gyroMovementCalibrationThreshold = 48; //for cli set - } + if (gyroConfig()->gyro_use_32khz && gyroConfig()->gyroMovementCalibrationThreshold < 148) { + gyroConfigMutable()->gyroMovementCalibrationThreshold = 148; } }