CHG: clearCommandBuffer(); before calling cmdparser.

This commit is contained in:
iceman1001 2016-02-14 15:24:11 +01:00
commit 4c36581b96
15 changed files with 52 additions and 52 deletions

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)