exeption of receive(TCPSocketconnection)

Dependents:   FTP_SDCard_File_Client_WIZwiki-W7500 FTPClient_example Freedman DigitalCamera_OV5642_WIZwiki-W7500 ... more

Fork of WIZnetInterface by WIZnet

Revision:
20:5a1969320666
Parent:
19:d8773cd4edc5
diff -r d8773cd4edc5 -r 5a1969320666 arch/int/W7500x_toe.cpp
--- a/arch/int/W7500x_toe.cpp	Wed Jul 01 04:02:50 2015 +0000
+++ b/arch/int/W7500x_toe.cpp	Tue Jul 21 15:39:29 2015 +0000
@@ -196,6 +196,7 @@
 	if (socket < 0) {
 		return -1;
 	}
+	#if 0
 	Timer t;
 	t.reset();
 	t.start();
@@ -209,6 +210,8 @@
 		}
 	}
 	return -1;
+	#endif
+	return sreg<uint16_t>(socket, Sn_RX_RSR);
 }
 
 int WIZnet_Chip::wait_writeable(int socket, int wait_time_ms, int req_size)