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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user