CLI: don't print an arrow on exit
This commit is contained in:
parent
e267e6f907
commit
dea1c8ae52
@ -3,6 +3,7 @@
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "../FIFOBuff/FIFOBuffChar.h"
|
||||
|
||||
@ -76,9 +77,12 @@ int tryExecute(FIFOBuffChar_t* fifo)
|
||||
|
||||
if (cmd != NULL)
|
||||
{
|
||||
(*(cmd->fn))(line);
|
||||
int ret = (*(cmd->fn))(line);
|
||||
|
||||
CLI_stringOut((char*)"> ");
|
||||
if (ret != INT_MIN)
|
||||
{
|
||||
CLI_stringOut((char*)"> ");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
typedef struct CMD_t {
|
||||
char* cmd;
|
||||
void (*fn)(char* line);
|
||||
int (*fn)(char* line);
|
||||
} CMD_t;
|
||||
|
||||
typedef struct CMDList_s {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user