Skip to content

Commit

Permalink
Merge branch 'master' into Arduino_1.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ntruchsess committed Mar 3, 2014
2 parents 75f473a + 7c0f6ca commit 97b9044
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions UIPEthernet/src/UIPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ uipclient_appcall(void)
{
#ifdef UIPETHERNET_DEBUG_CLIENT
Serial.println(F("UIPClient uip_connected"));
_dumpAllData();
UIPClient::_dumpAllData();
#endif
u = (uip_userdata_t*) UIPClient::_allocateData();
if (u)
Expand Down Expand Up @@ -387,7 +387,7 @@ uipclient_appcall(void)
{
#ifdef UIPETHERNET_DEBUG_CLIENT
Serial.println(F("UIPClient uip_closed"));
_dumpAllData();
UIPClient::_dumpAllData();
#endif
// drop outgoing packets not sent yet:
UIPClient::_flushBlocks(&u->packets_out[0]);
Expand All @@ -401,7 +401,7 @@ uipclient_appcall(void)
// disassociate appdata.
#ifdef UIPETHERNET_DEBUG_CLIENT
Serial.println(F("after UIPClient uip_closed"));
_dumpAllData();
UIPClient::_dumpAllData();
#endif
uip_conn->appstate = NULL;
goto nodata;
Expand Down Expand Up @@ -448,24 +448,24 @@ uipclient_appcall(void)
if (u->state & UIP_CLIENT_CLOSE)
{
#ifdef UIPETHERNET_DEBUG_CLIENT
Serial.print(F("UIPClient state UIP_CLIENT_CLOSE"));
_dumpAllData();
Serial.println(F("UIPClient state UIP_CLIENT_CLOSE"));
UIPClient::_dumpAllData();
#endif
if (u->packets_out[0] == NOBLOCK)
{
u->state = 0;
uip_conn->appstate = NULL;
uip_close();
#ifdef UIPETHERNET_DEBUG_CLIENT
Serial.print(F("no blocks out -> free userdata"));
_dumpAllData();
Serial.println(F("no blocks out -> free userdata"));
UIPClient::_dumpAllData();
#endif
}
else
{
uip_stop();
#ifdef UIPETHERNET_DEBUG_CLIENT
Serial.print(F("blocks outstanding transfer -> uip_stop()"));
Serial.println(F("blocks outstanding transfer -> uip_stop()"));
#endif
}
}
Expand Down Expand Up @@ -539,6 +539,7 @@ UIPClient::_flushBlocks(memhandle* block)
for (uint8_t i = 0; i < UIP_SOCKET_NUMPACKETS; i++)
{
Enc28J60Network::freeBlock(block[i]);
block[i] = NOBLOCK;
}
}

Expand Down

0 comments on commit 97b9044

Please sign in to comment.