Merge pull request #9 from samguns/main

Fix compilation error and unhandled Serial input error code
This commit is contained in:
whowechina
2024-11-27 13:04:32 +08:00
committed by GitHub
+1 -1
View File
@@ -176,7 +176,7 @@ void cli_run()
}
int c = getchar_timeout_us(0);
if (c == EOF) {
if (c < 0) {
return;
}
if (c == 0) {