From c71ef27104e0b69fc9252de54179b6ddb0c67942 Mon Sep 17 00:00:00 2001 From: mikeller Date: Wed, 1 Mar 2017 00:23:24 +1300 Subject: [PATCH] Added validation for Dterm notch filter settings. --- src/main/fc/config.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/fc/config.c b/src/main/fc/config.c index 147163a11..7087e7f0e 100755 --- a/src/main/fc/config.c +++ b/src/main/fc/config.c @@ -1261,6 +1261,11 @@ void validateAndFixConfig(void) } #endif + // Prevent invalid notch cutoff + if (currentProfile->pidProfile.dterm_notch_cutoff >= currentProfile->pidProfile.dterm_notch_hz) { + currentProfile->pidProfile.dterm_notch_hz = 0; + } + validateAndFixGyroConfig(); #if defined(TARGET_VALIDATECONFIG)