mirror of
https://github.com/whowechina/chu_pico.git
synced 2026-09-22 22:37:54 +03:00
Merge pull request #9 from samguns/main
Fix compilation error and unhandled Serial input error code
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ void cli_run()
|
||||
}
|
||||
|
||||
int c = getchar_timeout_us(0);
|
||||
if (c == EOF) {
|
||||
if (c < 0) {
|
||||
return;
|
||||
}
|
||||
if (c == 0) {
|
||||
|
||||
Reference in New Issue
Block a user