Interprets Commands received char by char.
Diff: CMD_Interpreter.cpp
- Revision:
- 2:5934744ac614
- Parent:
- 0:b4341838304c
--- a/CMD_Interpreter.cpp Tue Jun 25 11:21:00 2019 +0000 +++ b/CMD_Interpreter.cpp Thu Oct 31 10:47:57 2019 +0000 @@ -20,6 +20,7 @@ MyState = isStartNew; AllCommands = NULL; NumCommands = 0; + InvalidCommand = false; } void Interpreter::FillCommands( int aNumCommands, const EXE_CMD_TYPE *ACommands ) @@ -150,7 +151,9 @@ } else { CmdNr++; } // go on serarching } // while - // if ( !Found ) { CmdInval(cmd.Command) ; } // call invalid command function + if ( !Found ) { // CmdInval(cmd.Command) ; // call invalid command function + InvalidCommand = true; + } return Found; }