diff options
| author | Jeff Epler <jepler@gmail.com> | 2019-11-22 13:54:37 -0600 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2019-11-22 13:54:37 -0600 |
| commit | aabb56c840456dfdd065c8ca2e11854f32c5a63c (patch) | |
| tree | e21d84f67dd3dc3c545650cdcab99894e139c646 /shared-module/struct | |
| parent | c000567d880b054ca9ed0e9f96ee474451e92e3c (diff) | |
nrf: i2sout: Only update hold_value when appropriate
If we put no samples into the buffer, then there is no last
sample to fill out hold_value with. (and, in fact, the expression such
as *(uint32_t*)(buffer-4) is outside an allocated region)
Detect this condition, and leave the prior value in place.
This improves clicks heard when pausing and resuming a waveform.
Diffstat (limited to 'shared-module/struct')
0 files changed, 0 insertions, 0 deletions
