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:
parent
afb7e90265
commit
54f471343b
@ -395,7 +395,7 @@ console_handle_command(struct espconn *pespconn)
|
|||||||
#define MAX_CMD_TOKENS 9
|
#define MAX_CMD_TOKENS 9
|
||||||
|
|
||||||
char cmd_line[MAX_CON_CMD_SIZE+1];
|
char cmd_line[MAX_CON_CMD_SIZE+1];
|
||||||
char response[256];
|
char response[512];
|
||||||
char *tokens[MAX_CMD_TOKENS];
|
char *tokens[MAX_CMD_TOKENS];
|
||||||
|
|
||||||
int bytes_count, nTokens;
|
int bytes_count, nTokens;
|
||||||
@ -1044,6 +1044,7 @@ console_handle_command(struct espconn *pespconn)
|
|||||||
os_sprintf(response, "\r\nInvalid Command\r\n");
|
os_sprintf(response, "\r\nInvalid Command\r\n");
|
||||||
|
|
||||||
command_handled:
|
command_handled:
|
||||||
|
to_console("\r\n");
|
||||||
to_console(response);
|
to_console(response);
|
||||||
|
|
||||||
command_handled_2:
|
command_handled_2:
|
||||||
|
|||||||
Reference in New Issue
Block a user