1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/stdio: stdio_available is always false with missing stdin module

This commit is contained in:
Mikolai Gütschow 2024-11-25 16:19:34 +01:00
parent 3a7f3b4880
commit 57158285a1
No known key found for this signature in database
GPG Key ID: 943E2F37AA659AD5

View File

@ -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