mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Fixing bug in Ethernet (recv() in socket.cpp). (Paul Stoffregen)
http://code.google.com/p/arduino/issues/detail?id=670
This commit is contained in:
@ -151,7 +151,7 @@ uint16_t recv(SOCKET s, uint8_t *buf, uint16_t len)
|
|||||||
{
|
{
|
||||||
// No data available.
|
// No data available.
|
||||||
uint8_t status = W5100.readSnSR(s);
|
uint8_t status = W5100.readSnSR(s);
|
||||||
if ( s == SnSR::LISTEN || s == SnSR::CLOSED || s == SnSR::CLOSE_WAIT )
|
if ( status == SnSR::LISTEN || status == SnSR::CLOSED || status == SnSR::CLOSE_WAIT )
|
||||||
{
|
{
|
||||||
// The remote end has closed its side of the connection, so this is the eof state
|
// The remote end has closed its side of the connection, so this is the eof state
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
Reference in New Issue
Block a user