Skip to content

Commit

Permalink
Sketch loop(): Reset command buffer after execution
Browse files Browse the repository at this point in the history
  • Loading branch information
pasky committed Dec 27, 2011
1 parent 33fbb48 commit 990f27d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sketch/lasic.pde
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ void loop() {
if (InByte == 10 || InByte == 13 ) {
//Serial.println(sizeof(InCmd),DEC);
ExeCmd(InCmd);
/*
for (InCmdIndex++; InCmdIndex>0; InCmdIndex--) {
InCmd[InCmdIndex] = 0;
}
*/
for (InCmdIndex++; InCmdIndex>0; InCmdIndex--) {
InCmd[InCmdIndex] = 0;
}
InCmdIndex = 0;

}
Expand Down

0 comments on commit 990f27d

Please sign in to comment.