mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 01:09:47 +01:00
sys/stdio: stdio_available is always false with missing stdin module
This commit is contained in:
parent
3a7f3b4880
commit
57158285a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user