From c4fe48c248b655240e90873b9183699c53c28bee Mon Sep 17 00:00:00 2001 From: Martin Budden Date: Wed, 11 Jan 2017 01:03:28 +0000 Subject: [PATCH] Fixed handling of 32kHz gyro in gyroSetSampleRate --- src/main/drivers/gyro_sync.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/drivers/gyro_sync.c b/src/main/drivers/gyro_sync.c index 2415c2158..8449fc1df 100644 --- a/src/main/drivers/gyro_sync.c +++ b/src/main/drivers/gyro_sync.c @@ -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) {