CHG: clearCommandBuffer(); before calling cmdparser.

This commit is contained in:
iceman1001 committed 2016-02-14 15:24:11 +01:00
1 parent c6e0a2ebeb
commit 4c36581b96
15 files changed
+52 -52

No files matched your search

+4 -4
View File
@@ -98,10 +98,10 @@ int CmdList(const char *Cmd)
* @param Cmd
* @return
*/
int CmdScript(const char *Cmd)
{
CmdsParse(CommandTable, Cmd);
return 0;
int CmdScript(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
}
/**
* Utility to check the ending of a string (used to check file suffix)