mirror of
https://github.com/whowechina/geki_pico.git
synced 2025-02-14 17:42:42 +01:00
Fix getchar return handling
This commit is contained in:
parent
d789500959
commit
2326b411ec
Binary file not shown.
@ -168,10 +168,7 @@ void cli_run()
|
|||||||
printf("\n%s", cli_prompt);
|
printf("\n%s", cli_prompt);
|
||||||
}
|
}
|
||||||
int c = getchar_timeout_us(0);
|
int c = getchar_timeout_us(0);
|
||||||
if (c == EOF) {
|
if (c < 0) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (c == 0) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user