Skip to content

Commit

Permalink
fixup! cpu/native: use async read for stdio_read()
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Dec 3, 2022
1 parent 2c55338 commit ebac29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/native/stdio_native/stdio_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static uint8_t _rx_buf_mem[STDIO_NATIVE_RX_BUFSIZE];
static isrpipe_t stdio_isrpipe = ISRPIPE_INIT(_rx_buf_mem);

static void _async_read_wrapper(int fd, void *arg) {
uint8_t buf[STDIO_NATIVE_RX_BUFSIZE];
uint8_t buf[1];

int res = real_read(fd, &buf, sizeof(buf));
if (res > 0) {
Expand Down

0 comments on commit ebac29d

Please sign in to comment.