Pranav Thakur / Mbed 2 deprecated daplink-validation

Dependencies:   mbed

Fork of daplink-validation by Russ Butler

Files at this revision

API Documentation at this revision

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