We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ca66ee commit 1b19477Copy full SHA for 1b19477
main.c
@@ -234,7 +234,7 @@ static void command_loop(void)
234
cs_select(SPI_CS);
235
for(uint32_t i = 0; i < rlen; i += chunk) {
236
chunk = MIN(rlen - i, sizeof(buf));
237
- spi_read_blocking(SPI_IF, buf, chunk);
+ spi_read_blocking(SPI_IF, 0, buf, chunk);
238
fwrite(buf, 1, chunk, stdout);
239
fflush(stdout);
240
}
0 commit comments