uart_cmd: make sure 'set' type commands are visible on the console
This commit is contained in:
parent
8c63475355
commit
be7d17091d
|
@ -152,8 +152,10 @@ int uart_cmd_char(struct cmd_state *cs, uint8_t ch)
|
||||||
break;
|
break;
|
||||||
case ST_IN_ARG:
|
case ST_IN_ARG:
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case '\n':
|
|
||||||
case '\r':
|
case '\r':
|
||||||
|
uart_cmd_out(cs, "\n");
|
||||||
|
/* fall through */
|
||||||
|
case '\n':
|
||||||
rc = handle_cb(cs, CMD_OP_SET, cs->cmd.buf, cs->arg.buf);
|
rc = handle_cb(cs, CMD_OP_SET, cs->cmd.buf, cs->arg.buf);
|
||||||
uart_cmd_reset(cs);
|
uart_cmd_reset(cs);
|
||||||
break;
|
break;
|
||||||
|
|
Reference in New Issue