Skip to content

Commit

Permalink
Merge branch 'master' into Arduino_1.5.5
Browse files Browse the repository at this point in the history
Conflicts:
	UIPEthernet/src/utility/Enc28J60Network.cpp
	UIPEthernet/src/utility/Enc28J60Network.h
  • Loading branch information
ntruchsess committed Jan 14, 2014
2 parents 0e5f9fa + a69c7a4 commit f387143
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions UIPEthernet/src/UIPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ UIPClient::available()
{
if (*this)
return _available(data);
return -1;
return 0;
}

int
Expand Down Expand Up @@ -251,7 +251,14 @@ UIPClient::read(uint8_t *buf, size_t size)
if (uip_stopped(&uip_conns[data->state & UIP_CLIENT_SOCKETS]) && !(data->state & (UIP_CLIENT_CLOSE | UIP_CLIENT_CLOSED)))
data->state |= UIP_CLIENT_RESTART;
if (*p == NOBLOCK)
return size-remain;
{
if (data->state & UIP_CLIENT_CLOSED)
{
data->state = 0;
data = NULL;
}
return size-remain;
}
}
else
{
Expand Down

0 comments on commit f387143

Please sign in to comment.