Merge pull request #3964 from mikeller/fix_msp_dterm_filter_changing

Fixed lockup when changing dterm filter over MSP.
This commit is contained in:
Martin Budden 2017-08-26 15:18:07 +01:00 committed by GitHub
commit 779be8d89b
1 changed files with 2 additions and 0 deletions

View File

@ -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;