cmd handler stuff
This commit is contained in:
parent
06ee315f11
commit
4468cc1368
@ -113,6 +113,9 @@ int8_t cmdExecuteCommand(uint8_t *cmdLine, bool resetConfigMode) {
|
|||||||
args[argc++] = strtok(inCmdLine, " ");
|
args[argc++] = strtok(inCmdLine, " ");
|
||||||
inCmdLine = NULL;
|
inCmdLine = NULL;
|
||||||
} while (args[argc - 1] != NULL);
|
} while (args[argc - 1] != NULL);
|
||||||
|
if (argc > 0) {
|
||||||
|
argc--;
|
||||||
|
}
|
||||||
char *cmd = args[0];
|
char *cmd = args[0];
|
||||||
|
|
||||||
int8_t retCode = 0;
|
int8_t retCode = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user