Jens Frank Jensen / Mbed 2 deprecated foc-ed_in_the_bot_compact

Dependencies:   mbed FastPWM3

Revision:
246:167b5d50d0f2
Parent:
214:c70a6e86417f
Child:
247:da647f7185b7
--- a/callbacks.cpp	Mon Nov 12 12:43:31 2018 +0000
+++ b/callbacks.cpp	Tue Nov 13 15:06:37 2018 +0000
@@ -24,7 +24,7 @@
         } else if (c == '\r') {
             linebuf[index] = 0;
             io.pc->putc(c);
-            processCmd(io.pc, io.pref, linebuf);
+            if (!io.cmd_busy) processCmd(io.pc, io.pref, linebuf);
             index = 0;
             io.pc->putc('>');
         }