From 54f471343b1120364f1a5fd2958d8e2418aba50a Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 10 Mar 2018 15:46:38 +0100 Subject: [PATCH] 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. --- user/user_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/user/user_main.c b/user/user_main.c index a8b37b5..d859f60 100644 --- a/user/user_main.c +++ b/user/user_main.c @@ -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: