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 7:a5334d446b0d, committed 2021-04-12
- Comitter:
- yabumi823
- Date:
- Mon Apr 12 10:41:49 2021 +0000
- Parent:
- 6:9f5a9b099342
- Commit message:
- Re: bug fix
Changed in this revision
| SerialCtrl.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SerialCtrl.cpp Fri Apr 09 07:23:16 2021 +0000
+++ b/SerialCtrl.cpp Mon Apr 12 10:41:49 2021 +0000
@@ -55,7 +55,8 @@
_Timer->reset();
while(duration_cast<std::chrono::milliseconds>(_Timer->elapsed_time()).count() < TIMEOUT_MS) {
if( _Serial->readable() ) {
- return _Serial->read(&temp, 1);
+ _Serial->read(&temp, 1);
+ return temp;
}
}
return NUL;