Added validation for Dterm notch filter settings.
This commit is contained in:
parent
f984838d27
commit
c71ef27104
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue