Add a bunch of APNs

Fork of C027_Support by Xinlei Cao

Revision:
75:ce6e12067d0c
Parent:
74:208e3e32d263
Child:
95:8282dbbe1492
--- a/SerialPipe.cpp	Thu May 15 22:20:42 2014 +0000
+++ b/SerialPipe.cpp	Fri May 16 14:13:00 2014 +0000
@@ -39,11 +39,16 @@
         do
         {
             int written = _pipeTx.put(ptr, count, false);
-            ptr += written;
-            count -= written;
-            txStart();
+            if (written) {
+                ptr += written;
+                count -= written;
+                txStart();
+            }
+            else if (!blocking)
+                break;
+            RELAX_MS(0);
         }
-        while (count && blocking);
+        while (count);
     }
     return (length - count);
 }