Merge branch 'multie-cli' into esp-idf
This commit is contained in:
12
CLI/CLI.c
12
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
|
||||
|
||||
Reference in New Issue
Block a user