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

Dependents:   mtsas mtsas mtsas mtsas

Revision:
67:7c705fe2acec
Parent:
66:8c55e2bf7270
Child:
69:93dace69ee98
--- a/Cellular/EasyIP.cpp	Tue Oct 21 17:26:05 2014 +0000
+++ b/Cellular/EasyIP.cpp	Tue Oct 21 21:06:53 2014 +0000
@@ -351,7 +351,7 @@
 }
 
 //Closes socket connection
-bool EasyIP::close(bool clearBuffer)
+bool EasyIP::close(bool shutdown)
 {
     
     if(io == NULL) {
@@ -381,11 +381,9 @@
     }
     
     //Clear receive buffer
-    if (clearBuffer) {
-        Timer tmr;
+    if (shutdown) {
         int counter = 0;
         char tmp[256];
-        tmr.start();
         do {
             if(socketOpened == false) {
                 break;