mirror of
https://github.com/whowechina/geki_pico.git
synced 2025-02-07 14:41:20 +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);
|
||||
}
|
||||
int c = getchar_timeout_us(0);
|
||||
if (c == EOF) {
|
||||
return;
|
||||
}
|
||||
if (c == 0) {
|
||||
if (c < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user