You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not always set stdin to FNONBLOCK when PICO_PLATFORM=host
Because the UART simulation was setting FNONBLOCK flag on stdin, all
stdio functions like scanf() or fgets() were non blocking.
The workaround is to use a non_blocking_getchar() function to do the UART
simulation, which will temporarily set stdin to non blocking.
This will make stdio functions blocking like they normally do.
0 commit comments