Bayley Wang
/
foc-ed_in_the_bot_compact
robot
Revision 252:38644631ed97, committed 2018-11-13
- Comitter:
- bwang
- Date:
- Tue Nov 13 17:46:23 2018 +0000
- Parent:
- 251:4ba2f238066f
- Commit message:
- 11/13/2018 12:45 - hitting <return> on empty line prints "\r>", so that hitting enter after intially connecting to the controller generates a prompt
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 |
diff -r 4ba2f238066f -r 38644631ed97 CHANGELOG.txt --- a/CHANGELOG.txt Tue Nov 13 17:37:03 2018 +0000 +++ b/CHANGELOG.txt Tue Nov 13 17:46:23 2018 +0000 @@ -87,4 +87,5 @@ 11/13/2018 12:00 - moved COMMANDS.txt to the right location 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() -11/13/2018 12:36 - bugfix to processCmd(), hitting <return> on an empty line in terminal no longer prints 'Bad Command' \ No newline at end of file +11/13/2018 12:36 - bugfix to processCmd(), hitting <return> on an empty line in terminal no longer prints 'Bad Command' +11/13/2018 12:45 - hitting <return> on empty line prints "\r>", so that hitting enter after intially connecting to the controller generates a prompt \ No newline at end of file
diff -r 4ba2f238066f -r 38644631ed97 callbacks.cpp --- a/callbacks.cpp Tue Nov 13 17:37:03 2018 +0000 +++ b/callbacks.cpp Tue Nov 13 17:46:23 2018 +0000 @@ -29,7 +29,7 @@ io.pc->putc(c); processCmd(io.pc, io.pref, linebuf); io.pc->putc('>'); - } else if (index > 0) { + } else { io.pc->putc(c); io.pc->putc('>'); }