Small adjustments to the web server

This commit is contained in:
me-no-dev
2018-07-05 22:31:19 +02:00
parent 8afdd71b3a
commit b0c6991bcf
3 changed files with 5 additions and 3 deletions

View File

@ -359,7 +359,7 @@ uint8_t WebServer::_uploadReadByte(WiFiClient& client){
int res = client.read();
if(res == -1){
while(!client.available() && client.connected())
yield();
delay(2);
res = client.read();
}
return (uint8_t)res;