Jeff Epler aabb56c840 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.
2019-11-22 13:54:37 -06:00
..
2019-11-21 16:39:57 -08:00
2018-12-30 22:49:20 -05:00
2019-08-23 15:27:21 -07:00
2019-11-15 13:04:25 -05:00