Skip to content

Commit 2d2735c

Browse files
dhalberttannewt
authored andcommitted
Error in PDMIn filter loop.
1 parent e671fa2 commit 2d2735c

File tree

1 file changed

+2
-1
lines changed
  • atmel-samd/common-hal/audiobusio

1 file changed

+2
-1
lines changed

atmel-samd/common-hal/audiobusio/PDMIn.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,9 @@ static uint16_t filter_sample(uint32_t pdm_samples[4]) {
273273
uint32_t pdm_sample = pdm_samples[i];
274274
REPEAT_16_TIMES( {
275275
if (pdm_sample & 0x8000) {
276-
running_sum += *filter_ptr++;
276+
running_sum += *filter_ptr;
277277
}
278+
filter_ptr++;
278279
pdm_sample <<= 1;
279280
}
280281
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy