Fix console output issues.

- Increased response buffer size to be able to handle more output when listing many acl rules.
- Added newline before printing command result output.
This commit is contained in:
Michael Smith 2018-03-10 15:46:38 +01:00
parent afb7e90265
commit 54f471343b

View File

@ -395,7 +395,7 @@ console_handle_command(struct espconn *pespconn)
#define MAX_CMD_TOKENS 9
char cmd_line[MAX_CON_CMD_SIZE+1];
char response[256];
char response[512];
char *tokens[MAX_CMD_TOKENS];
int bytes_count, nTokens;
@ -1044,6 +1044,7 @@ console_handle_command(struct espconn *pespconn)
os_sprintf(response, "\r\nInvalid Command\r\n");
command_handled:
to_console("\r\n");
to_console(response);
command_handled_2: