mirror of
https://github.com/whowechina/musec_pico.git
synced 2026-10-12 01:08:24 +03:00
Fix getchar return handling
This commit is contained in:
Binary file not shown.
+1
-4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user