From 780257faebd4661371372de7f04abddedd49e0c7 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 425fd33fc..8607595e7 100755 --- a/src/main/fc/config.c +++ b/src/main/fc/config.c @@ -1216,6 +1216,11 @@ void validateAndFixConfig(void) resetSerialConfig(serialConfig); } + // 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)