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