Support for LISA-N101

Fork of C027_Support by u-blox

This is a variant of the C027 driver code for the C027N version, i.e. the one with the Neul/Huawei/u-blox Cellular Internet of Things module on board. The AT command interface for this module is entirely different to the AT interface for the other u-blox modules, hence this fork of the driver. Work is underway to rearchitect the original C027 driver so that a merge can be done.

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);
 }