fix history

This commit is contained in:
Laila van Reenen 2024-07-19 23:49:15 +02:00
parent 8f71535dfd
commit 42aec53edb
Signed by: LailaTheElf
GPG Key ID: 1F4E6EE3E6DDF769
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"