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:
10:3f1c13a8763d
Parent:
9:e7a5959ffae1
Child:
11:b084552b03fe
--- a/GPS.cpp	Sun Nov 10 16:39:42 2013 +0000
+++ b/GPS.cpp	Thu Nov 14 12:57:21 2013 +0000
@@ -273,7 +273,7 @@
     {
         if (!I2C::write(GPSADR,&REGSTREAM,sizeof(REGSTREAM),true))
             sent = _send(buf, len);
-        found = len == sent;
+        found = (len == sent);
         stop();
     }
     return sent;
@@ -286,7 +286,7 @@
     {
         if (!I2C::write(GPSADR,&REGSTREAM,sizeof(REGSTREAM),true))
             sent = GPSParser::sendNmea(buf, len);
-        found = len == sent;
+        found = (len == sent);
         stop();
     }
     return sent;
@@ -318,7 +318,7 @@
         if (size > 0)
             read = !I2C::read(GPSADR,buf,size, true) ? size : 0;
         stop();
-        found = read = size;
+        found = (read == size);
     }
     else 
         found = false;