MQTT client test with W5200 ethernet shield

Dependents:   IBMIoTClientEthernetExample_W5200

Fork of W5500Interface by W5500-Ethernet-Interface Makers

Revision:
2:e02950866c42
Parent:
0:e11e8793c3ce
Child:
3:a5d99521e9cc
--- a/WIZnet/W5500.cpp	Wed Aug 20 01:55:36 2014 +0000
+++ b/WIZnet/W5500.cpp	Wed Aug 20 05:09:16 2014 +0000
@@ -177,14 +177,7 @@
     t.reset();
     t.start();
     while(1) {
-        //int size = sreg<uint16_t>(socket, Sn_RX_RSR);
-        // during the reading Sn_RX_RXR, it has the possible change of this register.
-        // so read twice and get same value then use size information.
-        do {
-            size = sreg<uint16_t>(socket, Sn_RX_RSR);
-            size2 = sreg<uint16_t>(socket, Sn_RX_RSR);
-        } while (size != size2);
-
+        int size = sreg<uint16_t>(socket, Sn_RX_RSR);
 
         if (size > req_size) {
             return size;