mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-22 15:55:48 +03:00
Fixed lockup when changing dterm filter over MSP.
This commit is contained in:
parent
840070b5df
commit
41df8adbdb
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue