mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +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) {
|
if (pidProfile->dterm_lpf_hz == 0 || pidProfile->dterm_lpf_hz > pidFrequencyNyquist) {
|
||||||
dtermLpfApplyFn = nullFilterApply;
|
dtermLpfApplyFn = nullFilterApply;
|
||||||
} else {
|
} else {
|
||||||
|
memset(&dtermFilterLpfUnion, 0, sizeof(dtermFilterLpfUnion));
|
||||||
|
|
||||||
switch (pidProfile->dterm_filter_type) {
|
switch (pidProfile->dterm_filter_type) {
|
||||||
default:
|
default:
|
||||||
dtermLpfApplyFn = nullFilterApply;
|
dtermLpfApplyFn = nullFilterApply;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue