Prevent saving wrong gyro_sync_denom through configurator

This commit is contained in:
borisbstyle 2016-02-08 14:50:33 +01:00
parent 7ee65eac8f
commit 3fc14404dc
1 changed files with 1 additions and 1 deletions

View File

@ -130,8 +130,8 @@ void setGyroSamplingSpeed(uint16_t looptime) {
masterConfig.mag_hardware = 0;
}
#endif
masterConfig.gyro_sync_denom = constrain(looptime / gyroSampleRate, 1, maxDivider);
}
masterConfig.gyro_sync_denom = constrain(looptime / gyroSampleRate, 1, maxDivider);
}
void useRcControlsConfig(modeActivationCondition_t *modeActivationConditions, escAndServoConfig_t *escAndServoConfigToUse, pidProfile_t *pidProfileToUse);