Skip to content

Commit

Permalink
sys/stdio: stdio_available is always false with missing stdin module
Browse files Browse the repository at this point in the history
  • Loading branch information
mguetschow committed Nov 25, 2024
1 parent 3a7f3b4 commit 5715828
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sys/stdio/stdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ ssize_t stdio_read(void* buffer, size_t len)
MAYBE_WEAK
int stdio_available(void)
{
if (!IS_USED(MODULE_STDIN)) {
return 0;
}
return tsrb_avail(&stdin_isrpipe.tsrb);
}
#endif

0 comments on commit 5715828

Please sign in to comment.