From 7a66f43c3becd7b65933e750faf99b691dbdcdf3 Mon Sep 17 00:00:00 2001 From: Leo C Date: Sun, 29 Jul 2018 09:28:08 +0200 Subject: [PATCH] cli.c: The real bugfix for Comment only lines. --- avr/cli.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/avr/cli.c b/avr/cli.c index b47603a..7c45251 100644 --- a/avr/cli.c +++ b/avr/cli.c @@ -309,6 +309,10 @@ static int cli_run_command(const char *cmd, uint_fast8_t flag) } else { str = sep; /* no more commands for next pass */ } + while (isblank(*token)) + ++token; + if (*token == '\0') /* empty (comment only) */ + continue; debug_parser("token: \"%s\"\n", token); /* find macros in this token and replace them */ -- 2.39.2