diff --git a/applications/cli/cli.c b/applications/cli/cli.c index 4929b528..87ed8d10 100644 --- a/applications/cli/cli.c +++ b/applications/cli/cli.c @@ -57,8 +57,11 @@ size_t cli_read(Cli* cli, uint8_t* buffer, size_t size) { bool cli_cmd_interrupt_received(Cli* cli) { char c = '\0'; - api_hal_vcp_rx_with_timeout((uint8_t*)&c, 1, 1); - return c == CliSymbolAsciiETX; + if(api_hal_vcp_rx_with_timeout((uint8_t*)&c, 1, 0) == 1) { + return c == CliSymbolAsciiETX; + } else { + return false; + } } void cli_print_usage(const char* cmd, const char* usage, const char* arg) {