summaryrefslogtreecommitdiff
path: root/shared-module/struct
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2019-11-22 13:54:37 -0600
committerJeff Epler <jepler@gmail.com>2019-11-22 13:54:37 -0600
commitaabb56c840456dfdd065c8ca2e11854f32c5a63c (patch)
treee21d84f67dd3dc3c545650cdcab99894e139c646 /shared-module/struct
parentc000567d880b054ca9ed0e9f96ee474451e92e3c (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