1
0
mirror of https://github.com/whowechina/chu_pico.git synced 2024-11-28 04:30:49 +01:00

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
commit 65f9ddca4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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) {