Drain write FIFO, don't read just one block.

This commit is contained in:
Jared Boone 2016-03-27 22:48:13 -07:00
parent aca19ae997
commit daa2f7aed0

View File

@ -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());