diff --git a/firmware/src/cli.c b/firmware/src/cli.c index d9c17bb..31ae4f6 100644 --- a/firmware/src/cli.c +++ b/firmware/src/cli.c @@ -176,7 +176,7 @@ void cli_run() } int c = getchar_timeout_us(0); - if (c == EOF) { + if (c < 0) { return; } if (c == 0) {