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:
6:775aef3f1d1f
Parent:
4:c959dd4c5fe8
Child:
7:9aa830f5811e
--- a/GPS.cpp	Sat Nov 02 16:08:20 2013 +0000
+++ b/GPS.cpp	Sat Nov 09 12:20:25 2013 +0000
@@ -246,9 +246,13 @@
 
 int GPSI2C::getMessage(char* buf, int len)
 {
-    int sz = _get(buf, len);
+    // fill the pipe
+    int sz = _pipe.free();
+    if (sz) 
+        sz = _get(buf, sz);
     if (sz) 
         _pipe.put(buf, sz);
+    // now parse it
     return _getMessage(&_pipe, buf, len);   
 }