Bayley Wang / Mbed 2 deprecated foc-ed_in_the_bot_compact

Dependencies:   FastPWM3 mbed

Files at this revision

API Documentation at this revision

Comitter:
bwang
Date:
Tue Nov 13 17:26:58 2018 +0000
Parent:
249:314c1b12d9c2
Child:
251:4ba2f238066f
Commit message:
11/13/2018 12:26 - bugfix to rxCallback()

Changed in this revision

CHANGELOG.txt Show annotated file Show diff for this revision Revisions of this file
callbacks.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/CHANGELOG.txt	Tue Nov 13 17:23:50 2018 +0000
+++ b/CHANGELOG.txt	Tue Nov 13 17:26:58 2018 +0000
@@ -85,4 +85,5 @@
 11/13/2018 11:04 - added fast commands (which have command and data > 127 and aren't issuable from a terminal)
 11/13/2018 11:20 - added COMMANDS.txt, added bounds check in OP_TORQUE
 11/13/2018 12:00 - moved COMMANDS.txt to the right location
-11/13/2018 12:33 - changes to rxCallback() - fast commands no longer print "\r>" after completion; non-ASCII chars are no longer echoed
\ No newline at end of file
+11/13/2018 12:23 - changes to rxCallback() - fast commands no longer print "\r>" after completion; non-ASCII chars are no longer echoed
+11/13/2018 12:26 - bugfix to rxCallback()
\ No newline at end of file
--- a/callbacks.cpp	Tue Nov 13 17:23:50 2018 +0000
+++ b/callbacks.cpp	Tue Nov 13 17:26:58 2018 +0000
@@ -26,8 +26,8 @@
             if (!io.cmd_busy && linebuf[0] > 127) {
                 processCmdFast(io.pc, io.pref, linebuf);
             } else if (!io.cmd_busy) {
+                io.pc->putc(c);
                 processCmd(io.pc, io.pref, linebuf);
-                io.pc->putc(c);
                 io.pc->putc('>');
             }
             index = 0;