From daa2f7aed0ca4c5402d4d5f135da2ecd5193db7b Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Sun, 27 Mar 2016 22:48:13 -0700 Subject: [PATCH] Drain write FIFO, don't read just one block. --- firmware/application/audio_thread.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/application/audio_thread.hpp b/firmware/application/audio_thread.hpp index 0d00b043..5155fc4f 100644 --- a/firmware/application/audio_thread.hpp +++ b/firmware/application/audio_thread.hpp @@ -104,7 +104,7 @@ private: StreamOutput stream { fifo }; - if( stream.available() >= write_buffer->size() ) { + while( stream.available() >= write_buffer->size() ) { led_usb.on(); const auto bytes_to_write = stream.read(write_buffer->data(), write_buffer->size());