Sketch loop(): Reset command buffer after execution

This commit is contained in:
Petr Baudis 2011-12-27 23:06:15 +01:00
parent 33fbb48200
commit 990f27d126

View file

@ -41,11 +41,9 @@ void loop() {
if (InByte == 10 || InByte == 13 ) { if (InByte == 10 || InByte == 13 ) {
//Serial.println(sizeof(InCmd),DEC); //Serial.println(sizeof(InCmd),DEC);
ExeCmd(InCmd); ExeCmd(InCmd);
/*
for (InCmdIndex++; InCmdIndex>0; InCmdIndex--) { for (InCmdIndex++; InCmdIndex>0; InCmdIndex--) {
InCmd[InCmdIndex] = 0; InCmd[InCmdIndex] = 0;
} }
*/
InCmdIndex = 0; InCmdIndex = 0;
} }