1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Fix issues when tcp error occurred

This commit is contained in:
Mimmo La Fauci
2012-05-26 09:13:35 +02:00
parent 2645a5b26e
commit 457de8502a
5 changed files with 65 additions and 46 deletions

View File

@ -182,11 +182,14 @@ void* getTTCP(uint8_t sock)
int getSock(void * _ttcp)
{
int i = 0;
for (; i<MAX_SOCK_NUM; i++)
if (_ttcp != NULL)
{
if (_ttcp == mapSockTCP[i])
return i;
int i = 0;
for (; i<MAX_SOCK_NUM; i++)
{
if (_ttcp == mapSockTCP[i])
return i;
}
}
return -1;
}