Cellular library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems

Dependents:   mtsas mtsas mtsas mtsas

Revision:
30:1326b623919a
Parent:
18:fa0d8120f81f
--- a/Utils/CellUtils.h	Wed Jul 02 15:06:03 2014 +0000
+++ b/Utils/CellUtils.h	Mon Jul 14 17:33:24 2014 +0000
@@ -84,7 +84,7 @@
         if(size > 0) {
             result.append(tmp, size);
         }
-        done =  (result.size() == previous);
+        done =  (result.size() == previous && previous > 0);
         if(timer >= timeoutMillis) {
             if (command != "AT" && command != "at") {
                 logWarning("sendCommand [%s] timed out after %d milliseconds", command.c_str(), timeoutMillis);