Skip to content

Commit 17adb9d

Browse files
committed
removed +500 for previous rounding
+ unnecessary comments removed.
1 parent 1c7116b commit 17adb9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/HTTPClient/src/HTTPClient.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ void HTTPClient::setTimeout(uint16_t timeout)
495495
{
496496
_tcpTimeout = timeout;
497497
if(connected()) {
498-
_client->setTimeout(timeout + 500); /* / 1000 removed, WifiClient setTimeout changed to ms */
498+
_client->setTimeout(timeout);
499499
}
500500
}
501501

@@ -1151,7 +1151,7 @@ bool HTTPClient::connect(void)
11511151
}
11521152

11531153
// set Timeout for WiFiClient and for Stream::readBytesUntil() and Stream::readStringUntil()
1154-
_client->setTimeout(_tcpTimeout + 500); /* / 1000 removed, WifiClient setTimeout changed to ms */
1154+
_client->setTimeout(_tcpTimeout);
11551155

11561156
log_d(" connected to %s:%u", _host.c_str(), _port);
11571157

0 commit comments

Comments
 (0)