t3

Fork of C027_Support by u-blox

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;