aboutsummaryrefslogtreecommitdiff
path: root/firmwares/wifishield/wifiHD/src/ard_utils.h
diff options
context:
space:
mode:
authorMimmo La Fauci <mlafauci@metodo2.it>2013-03-22 13:42:12 +0100
committerMimmo La Fauci <mlafauci@metodo2.it>2013-03-22 13:42:12 +0100
commit41d49e97f0d93853659f37fe5e4d4e0a19c20b41 (patch)
tree8660bd33d50b68d237e35766e0da650a3b0dd164 /firmwares/wifishield/wifiHD/src/ard_utils.h
parente43ed7d47d9b2c37ccff6dc75d6bfe4c8a55ac86 (diff)
Fix issue with multiple clients on WebServer
Diffstat (limited to 'firmwares/wifishield/wifiHD/src/ard_utils.h')
-rw-r--r--firmwares/wifishield/wifiHD/src/ard_utils.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/firmwares/wifishield/wifiHD/src/ard_utils.h b/firmwares/wifishield/wifiHD/src/ard_utils.h
index 5dee3c0..323b328 100644
--- a/firmwares/wifishield/wifiHD/src/ard_utils.h
+++ b/firmwares/wifishield/wifiHD/src/ard_utils.h
@@ -242,10 +242,11 @@
#endif
#define DUMP_TCP_STATE(TTCP) do {\
- INFO_TCP("ttcp:%p tpcb:%p state:%d lpcb:%p state:%d left:%d sent:%d\n", \
- TTCP, TTCP->tpcb[0], (TTCP->tpcb[0])?TTCP->tpcb[0]->state:0, \
+ int i = getCurrClientConnId(); \
+ INFO_TCP("%d] ttcp:%p tpcb:%p state:%d lpcb:%p state:%d left:%d sent:%d\n", \
+ i, TTCP, TTCP->tpcb[i], (TTCP->tpcb[i])?TTCP->tpcb[i]->state:0, \
TTCP->lpcb, (TTCP->lpcb)?TTCP->lpcb->state:0, \
- (TTCP)?TTCP->left:0, (TTCP)?TTCP->buff_sent:0); \
+ (TTCP->tpcb[i])?TTCP->left[i]:0, (TTCP->tpcb[i])?TTCP->buff_sent[i]:0); \
} while(0);
#define Mode2Str(_Mode) ((_Mode==0)?"TRANSMIT":"RECEIVE")