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.
Fork of daplink-validation by
Revision 14:1293f2ed9c63, committed 2017-04-10
- Comitter:
- c1728p9
- Date:
- Mon Apr 10 16:15:01 2017 +0000
- Parent:
- 13:83609cba40df
- Child:
- 15:b724ef1cc0fe
- Commit message:
- Fix overrun due to slight differences in baudrates (effects stm32f103)
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Apr 10 16:11:57 2017 +0000
+++ b/main.cpp Mon Apr 10 16:15:01 2017 +0000
@@ -81,7 +81,7 @@
}
// Process and send data
- if (!buf.empty()) {
+ if (!buf.empty() && pc.writeable()) {
val = buf.dequeue();
// Check for overflow. Leave space for
// a null terminating character
