Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 5:0df77b612c09, committed 2018-01-16
- Comitter:
- maskas
- Date:
- Tue Jan 16 18:30:30 2018 +0000
- Parent:
- 4:5f1af832e593
- Commit message:
Changed in this revision
Android.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 5f1af832e593 -r 0df77b612c09 Android.cpp --- a/Android.cpp Sun Jan 14 07:59:44 2018 +0000 +++ b/Android.cpp Tue Jan 16 18:30:30 2018 +0000 @@ -77,7 +77,9 @@ printf("Unknown command: |%s|\n", command); } - this->serial.getc();//read newline + if (this->serial.readable()){ + this->serial.getc();//read newline + } }