Error in PDMIn filter loop.
This commit is contained in:
parent
e671fa2f7a
commit
2d2735c9d4
@ -273,8 +273,9 @@ static uint16_t filter_sample(uint32_t pdm_samples[4]) {
|
|||||||
uint32_t pdm_sample = pdm_samples[i];
|
uint32_t pdm_sample = pdm_samples[i];
|
||||||
REPEAT_16_TIMES( {
|
REPEAT_16_TIMES( {
|
||||||
if (pdm_sample & 0x8000) {
|
if (pdm_sample & 0x8000) {
|
||||||
running_sum += *filter_ptr++;
|
running_sum += *filter_ptr;
|
||||||
}
|
}
|
||||||
|
filter_ptr++;
|
||||||
pdm_sample <<= 1;
|
pdm_sample <<= 1;
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user