Skip to content

Commit 33845c2

Browse files
committed
Try to read and send the requested data in chunks
1 parent 1b19477 commit 33845c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ static void command_loop(void)
235235
for(uint32_t i = 0; i < rlen; i += chunk) {
236236
chunk = MIN(rlen - i, sizeof(buf));
237237
spi_read_blocking(SPI_IF, 0, buf, chunk);
238-
fwrite(buf, 1, chunk, stdout);
239-
fflush(stdout);
238+
sendbytes_blocking(rx_buffer, rlen);
240239
}
241240
cs_deselect(SPI_CS);
242241
break;

0 commit comments

Comments
 (0)