RC

Dependents:   WizFi250_AP_HelloWorld

Fork of WizFi250Interface by DongEun Koak

Revision:
9:12ecb377f63f
Parent:
5:8a0702aa91e3
Child:
11:e52b91d1a5d5
--- a/Socket/TCPSocketConnection.cpp	Fri Nov 14 16:53:10 2014 +0900
+++ b/Socket/TCPSocketConnection.cpp	Fri Jun 19 15:34:40 2015 +0900
@@ -80,18 +80,18 @@
     if(_blocking)
     {
         tmr.start();
-        while(time < _timeout + 20)
+        while(time < _timeout)
         {
             if(_wizfi250->readable(_cid))
             {
-            	WIZ_DBG("receive readable");
+            	WIZ_DBG("receive readable : %d\r\n",_wizfi250->readable(_cid));
               break;
             }
             time = tmr.read_ms();
         }
-        if(time >= _timeout + 20)
+        if(time >= _timeout)
         {
-        	  WIZ_DBG("receive timeout");
+        	  //WIZ_DBG("receive timeout");
             return 0;
         }
     }