aboutsummaryrefslogtreecommitdiff
path: root/firmwares/wifishield/wifiHD/src/ard_utils.c
diff options
context:
space:
mode:
authorMimmo La Fauci <mlafauci@metodo2.it>2013-03-16 12:33:50 +0100
committerMimmo La Fauci <mlafauci@metodo2.it>2013-03-16 12:33:50 +0100
commite477d8cffaf99465dc6815230e6b01ebe1f87b26 (patch)
treeb2d0f41aef7d66b4e7fe8d1493417794d2f2d244 /firmwares/wifishield/wifiHD/src/ard_utils.c
parentcc8291eda8e87f8d8be5868fe51bf3b2c76be398 (diff)
Fixed issu con client.available to return the correct number of bytes
Diffstat (limited to 'firmwares/wifishield/wifiHD/src/ard_utils.c')
-rw-r--r--firmwares/wifishield/wifiHD/src/ard_utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmwares/wifishield/wifiHD/src/ard_utils.c b/firmwares/wifishield/wifiHD/src/ard_utils.c
index 39c19dd..7bff763 100644
--- a/firmwares/wifishield/wifiHD/src/ard_utils.c
+++ b/firmwares/wifishield/wifiHD/src/ard_utils.c
@@ -78,6 +78,8 @@ uint16_t calcMergeLen(uint8_t sock)
if (pBufStore[index][sock].data != NULL)
{
len += pBufStore[index][sock].len;
+ len -= pBufStore[index][sock].idx;
+ INFO_UTIL_VER(" [%d]: len:%d idx:%d tot:%d\n", sock, pBufStore[index][sock].len, pBufStore[index][sock].idx, len);
}
++index;
if (index == MAX_PBUF_STORED)