Skip to content

Commit 97b9044

Browse files
committed
Merge branch 'master' into Arduino_1.5.5
2 parents 75f473a + 7c0f6ca commit 97b9044

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

UIPEthernet/src/UIPClient.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ uipclient_appcall(void)
331331
{
332332
#ifdef UIPETHERNET_DEBUG_CLIENT
333333
Serial.println(F("UIPClient uip_connected"));
334-
_dumpAllData();
334+
UIPClient::_dumpAllData();
335335
#endif
336336
u = (uip_userdata_t*) UIPClient::_allocateData();
337337
if (u)
@@ -387,7 +387,7 @@ uipclient_appcall(void)
387387
{
388388
#ifdef UIPETHERNET_DEBUG_CLIENT
389389
Serial.println(F("UIPClient uip_closed"));
390-
_dumpAllData();
390+
UIPClient::_dumpAllData();
391391
#endif
392392
// drop outgoing packets not sent yet:
393393
UIPClient::_flushBlocks(&u->packets_out[0]);
@@ -401,7 +401,7 @@ uipclient_appcall(void)
401401
// disassociate appdata.
402402
#ifdef UIPETHERNET_DEBUG_CLIENT
403403
Serial.println(F("after UIPClient uip_closed"));
404-
_dumpAllData();
404+
UIPClient::_dumpAllData();
405405
#endif
406406
uip_conn->appstate = NULL;
407407
goto nodata;
@@ -448,24 +448,24 @@ uipclient_appcall(void)
448448
if (u->state & UIP_CLIENT_CLOSE)
449449
{
450450
#ifdef UIPETHERNET_DEBUG_CLIENT
451-
Serial.print(F("UIPClient state UIP_CLIENT_CLOSE"));
452-
_dumpAllData();
451+
Serial.println(F("UIPClient state UIP_CLIENT_CLOSE"));
452+
UIPClient::_dumpAllData();
453453
#endif
454454
if (u->packets_out[0] == NOBLOCK)
455455
{
456456
u->state = 0;
457457
uip_conn->appstate = NULL;
458458
uip_close();
459459
#ifdef UIPETHERNET_DEBUG_CLIENT
460-
Serial.print(F("no blocks out -> free userdata"));
461-
_dumpAllData();
460+
Serial.println(F("no blocks out -> free userdata"));
461+
UIPClient::_dumpAllData();
462462
#endif
463463
}
464464
else
465465
{
466466
uip_stop();
467467
#ifdef UIPETHERNET_DEBUG_CLIENT
468-
Serial.print(F("blocks outstanding transfer -> uip_stop()"));
468+
Serial.println(F("blocks outstanding transfer -> uip_stop()"));
469469
#endif
470470
}
471471
}
@@ -539,6 +539,7 @@ UIPClient::_flushBlocks(memhandle* block)
539539
for (uint8_t i = 0; i < UIP_SOCKET_NUMPACKETS; i++)
540540
{
541541
Enc28J60Network::freeBlock(block[i]);
542+
block[i] = NOBLOCK;
542543
}
543544
}
544545

0 commit comments

Comments
 (0)