summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--avr/cli.c4
1 files changed, 4 insertions, 0 deletions
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 */