Fixed handling of 32kHz gyro in gyroSetSampleRate

This commit is contained in:
Martin Budden 2017-01-11 01:03:28 +00:00
parent 7c78c3090e
commit c4fe48c248
1 changed files with 0 additions and 6 deletions

View File

@ -24,12 +24,6 @@ bool gyroSyncCheckUpdate(gyroDev_t *gyro)
uint32_t gyroSetSampleRate(gyroDev_t *gyro, uint8_t lpf, uint8_t gyroSyncDenominator, bool gyro_use_32khz)
{
#ifndef GYRO_SUPPORTS_32KHZ
if (gyro_use_32khz) {
gyro_use_32khz = false;
}
#endif
float gyroSamplePeriod;
if (lpf == GYRO_LPF_256HZ || lpf == GYRO_LPF_NONE) {