Compare commits

...

2 Commits

Author SHA1 Message Date
ae59563e7d
Merge branch 'multie-cli' into esp-idf 2024-07-19 23:49:45 +02:00
42aec53edb
fix history 2024-07-19 23:49:15 +02:00
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -4,7 +4,6 @@
#include <stdbool.h>
#include <config.h>
#define HISTORY
#include "../CMDList/CMDList.h"
#include "../FIFOBuff/FIFOBuffChar.h"