Skip to content

Commit 536ec69

Browse files
authored
remove duplicate fix
1 parent 5f19733 commit 536ec69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/src/WiFiClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ int WiFiClient::connect(IPAddress ip, uint16_t port, int32_t timeout_ms)
246246
FD_ZERO(&fdset);
247247
FD_SET(sockfd, &fdset);
248248
tv.tv_sec = _timeout / 1000;
249-
tv.tv_usec = (_timeout % 1000) * 1000;
249+
tv.tv_usec = 0;
250250

251251
#ifdef ESP_IDF_VERSION_MAJOR
252252
int res = lwip_connect(sockfd, (struct sockaddr*)&serveraddr, sizeof(serveraddr));

0 commit comments

Comments
 (0)