From 698108db218beca558a3ad5aa803e33082e25dd5 Mon Sep 17 00:00:00 2001 From: "@ViktorWiz" <54257433+ViktorWiz@users.noreply.github.com> Date: Mon, 8 Jun 2020 17:23:54 +0900 Subject: [PATCH] Fix --- README.md | 4 ++++ WIZ550SR_App/.settings/language.settings.xml | 4 ++-- WIZ550SR_App/src/ATcmd/atcmd.c | 14 +++++--------- WIZ550SR_App/src/ATcmd/cmdrun.c | 5 +++-- WIZ550SR_App/src/common.h | 2 +- 5 files changed, 15 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 86951ce..9a7c046 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,10 @@ These are Firmware projects (source code) based on Eclipse IDE for C/C++ Develop ## Revision History +v1.2.2 +- Change prevbuf from pointer array to 2D array +- Change dump from pointer to array + v1.2.1 - AT Command RSP Buffer Size 20 -> 50 diff --git a/WIZ550SR_App/.settings/language.settings.xml b/WIZ550SR_App/.settings/language.settings.xml index 39dd3fb..9063029 100644 --- a/WIZ550SR_App/.settings/language.settings.xml +++ b/WIZ550SR_App/.settings/language.settings.xml @@ -5,7 +5,7 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/WIZ550SR_App/src/ATcmd/atcmd.c b/WIZ550SR_App/src/ATcmd/atcmd.c index 7974e27..059bd7a 100644 --- a/WIZ550SR_App/src/ATcmd/atcmd.c +++ b/WIZ550SR_App/src/ATcmd/atcmd.c @@ -114,7 +114,7 @@ const struct at_command g_cmd_table[] = }; static int8_t termbuf[ATCMD_BUF_SIZE]; -static int8_t *prevbuf[PREVBUF_MAX_NUM]; +static int8_t prevbuf[PREVBUF_MAX_NUM][ATCMD_BUF_SIZE]; static uint8_t previdx = 0, prevcnt = 0; static int16_t prevlen = 0; @@ -131,7 +131,7 @@ void atc_init() int8_t i; memset(termbuf, 0, ATCMD_BUF_SIZE); - for(i=0; i