espressif / esp-adf

Espressif Audio Development Framework
Other
1.54k stars 677 forks source link

bugfix src_drv_adc_slide_filter() returns incorrect result (AUD-5148) (AUD-5149) #1134

Closed phatpaul closed 5 months ago

phatpaul commented 8 months ago

The sliding window filter algorithm was wrong because the oldest value was overwritten before being subtracted from the sum. Fixed by changing the order of operations.

CLAassistant commented 8 months ago

CLA assistant check
All committers have signed the CLA.

jason-mao commented 5 months ago

Thanks for your contribution. It's merged on 7082bde25f8fb3a420beecf78f63d4ceaa66e82a