fix history
This commit is contained in:
parent
8f71535dfd
commit
42aec53edb
12
CLI/CLI.c
12
CLI/CLI.c
@ -128,7 +128,11 @@ void historyPrevius(CLI_t* cli)
|
|||||||
// write line
|
// write line
|
||||||
if ((ret >= 0) && (line != NULL))
|
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)
|
void historyNext(CLI_t* cli)
|
||||||
@ -147,7 +151,11 @@ void historyNext(CLI_t* cli)
|
|||||||
// write line
|
// write line
|
||||||
if ((ret >= 0) && (line != NULL))
|
if ((ret >= 0) && (line != NULL))
|
||||||
{
|
{
|
||||||
CLI_stringOut(cli, line);
|
int i;
|
||||||
|
for (i=0; *(line + i) != '\0'; i++)
|
||||||
|
{
|
||||||
|
CLI_charIn(cli, *(line + i));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user