Merge pull request #3964 from mikeller/fix_msp_dterm_filter_changing
Fixed lockup when changing dterm filter over MSP.
This commit is contained in:
commit
779be8d89b
|
@ -200,6 +200,8 @@ void pidInitFilters(const pidProfile_t *pidProfile)
|
|||
if (pidProfile->dterm_lpf_hz == 0 || pidProfile->dterm_lpf_hz > pidFrequencyNyquist) {
|
||||
dtermLpfApplyFn = nullFilterApply;
|
||||
} else {
|
||||
memset(&dtermFilterLpfUnion, 0, sizeof(dtermFilterLpfUnion));
|
||||
|
||||
switch (pidProfile->dterm_filter_type) {
|
||||
default:
|
||||
dtermLpfApplyFn = nullFilterApply;
|
||||
|
|
Loading…
Reference in New Issue