uart_cmd: make sure 'set' type commands are visible on the console

This commit is contained in:
Harald Welte 2012-02-29 02:31:02 +01:00
parent 8c63475355
commit be7d17091d
1 changed files with 3 additions and 1 deletions

View File

@ -152,8 +152,10 @@ int uart_cmd_char(struct cmd_state *cs, uint8_t ch)
break;
case ST_IN_ARG:
switch (ch) {
case '\n':
case '\r':
uart_cmd_out(cs, "\n");
/* fall through */
case '\n':
rc = handle_cb(cs, CMD_OP_SET, cs->cmd.buf, cs->arg.buf);
uart_cmd_reset(cs);
break;