diff options
author | Cristian Maglie <c.maglie@bug.st> | 2012-12-10 15:55:05 +0100 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2012-12-10 15:55:05 +0100 |
commit | 433090f18b6218319fe0a721c24e1dc69285ea3e (patch) | |
tree | e7dc4da5b6ff077f1bc255350506dfc0bf87c6c3 /firmwares/wifishield/wifiHD/src/ard_tcp.c | |
parent | c453e0a32e7adf5e7bab7bfb7c8f7a21e30ca563 (diff) | |
parent | e624b841b3b5d22f6e9cb7ec515beb47f96f46f2 (diff) |
Merged 1.0.3
Diffstat (limited to 'firmwares/wifishield/wifiHD/src/ard_tcp.c')
-rw-r--r-- | firmwares/wifishield/wifiHD/src/ard_tcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmwares/wifishield/wifiHD/src/ard_tcp.c b/firmwares/wifishield/wifiHD/src/ard_tcp.c index dad1c3e..b70549a 100644 --- a/firmwares/wifishield/wifiHD/src/ard_tcp.c +++ b/firmwares/wifishield/wifiHD/src/ard_tcp.c @@ -334,7 +334,8 @@ void ack_recved(void* pcb, int len) { static err_t atcp_poll(void *arg, struct tcp_pcb *pcb) { struct ttcp* _ttcp = arg; - ++tcp_poll_retries; + if ((_ttcp) && (_ttcp->left>0)) + ++tcp_poll_retries; if (tcp_poll_retries > 4) { WARN("ARD TCP [%p] arg=%p retries=%d\n", |