diff options
-rw-r--r-- | Project/RTDSP/enhance.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Project/RTDSP/enhance.c b/Project/RTDSP/enhance.c index fc619d1..d4b8ce3 100644 --- a/Project/RTDSP/enhance.c +++ b/Project/RTDSP/enhance.c @@ -269,9 +269,8 @@ void low_pass_filter(float* current, float* next) { int w; float temp; for (w = 0; w < FFTLEN; ++w) { - temp = current[w]; current[w] = (1-K)*current[w] + K*next[w]; - next[w] = temp; + next[w] = current[w]; } } |