mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Drain write FIFO, don't read just one block.
This commit is contained in:
parent
aca19ae997
commit
daa2f7aed0
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user