mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-15 12:29:26 +01:00
Fixed WebServer Issue
This commit is contained in:
parent
b6490ad458
commit
28a453783f
@ -249,14 +249,10 @@ uint8_t ServerDrv::checkDataSent(uint8_t sock)
|
|||||||
if (_data) timeout = 0;
|
if (_data) timeout = 0;
|
||||||
else{
|
else{
|
||||||
++timeout;
|
++timeout;
|
||||||
if (timeout > TIMEOUT_DATA_SENT)
|
delay(10);
|
||||||
{
|
|
||||||
timeout = 0;
|
|
||||||
INFO1("Timeout wainting for data sent");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}while((_data==0)&&(timeout<TIMEOUT_DATA_SENT));
|
|
||||||
|
|
||||||
|
}while((_data==0)&&(timeout<TIMEOUT_DATA_SENT));
|
||||||
return (timeout==TIMEOUT_DATA_SENT)?0:1;
|
return (timeout==TIMEOUT_DATA_SENT)?0:1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user