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.
Diff: SerialCtrl.cpp
- Revision:
- 7:a5334d446b0d
- Parent:
- 6:9f5a9b099342
--- 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;