works through pushing box to log data to google spreadsheet

Dependencies:   MBed_Adafruit-GPS-Library SDFileSystem mbed

Fork of GPR_Interface by DCS_TEAM

Revision:
4:1142bdd07989
Parent:
3:acf2ea413e72
Child:
10:8c55dfcc9a7c
--- a/Socket/TCPSocketConnection.cpp	Wed Feb 26 09:12:46 2014 +0000
+++ b/Socket/TCPSocketConnection.cpp	Thu Feb 27 07:25:20 2014 +0000
@@ -81,7 +81,7 @@
     }
 #endif
     int size = gprs->wait_readable(_sock_fd, DEFAULT_TIMEOUT);
-    return gprs->recv(_sock_fd, data, size);
+    return gprs->recv(_sock_fd, data, size>length?length:size);
 }
 
 int TCPSocketConnection::receive_all(char* data, int length)