mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Update config.c
This commit is contained in:
parent
75ccb897f1
commit
459f91e7a0
1 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue