mirror of
https://github.com/whowechina/chu_pico.git
synced 2024-11-30 21:37:18 +01:00
Fix unhandled serial input error code
This commit is contained in:
parent
14360e90dc
commit
eaffb198f5
@ -176,7 +176,7 @@ void cli_run()
|
||||
}
|
||||
|
||||
int c = getchar_timeout_us(0);
|
||||
if (c == EOF) {
|
||||
if (c < 0) {
|
||||
return;
|
||||
}
|
||||
if (c == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user