diff --git a/CLI/CLI.c b/CLI/CLI.c index 52eb0a2..3b4161e 100644 --- a/CLI/CLI.c +++ b/CLI/CLI.c @@ -128,7 +128,11 @@ void historyPrevius(CLI_t* cli) // write line if ((ret >= 0) && (line != NULL)) { - CLI_stringOut(cli, line); + int i; + for (i=0; *(line + i) != '\0'; i++) + { + CLI_charIn(cli, *(line + i)); + } } } void historyNext(CLI_t* cli) @@ -147,7 +151,11 @@ void historyNext(CLI_t* cli) // write line if ((ret >= 0) && (line != NULL)) { - CLI_stringOut(cli, line); + int i; + for (i=0; *(line + i) != '\0'; i++) + { + CLI_charIn(cli, *(line + i)); + } } } #endif diff --git a/CLI/CLI.h b/CLI/CLI.h index 19138c9..11ee04b 100644 --- a/CLI/CLI.h +++ b/CLI/CLI.h @@ -4,7 +4,6 @@ #include #include -#define HISTORY #include "../CMDList/CMDList.h" #include "../FIFOBuff/FIFOBuffChar.h"