Skip to content

Commit 8563b31

Browse files
authored
overlooked timeout change to timeout_ms
1 parent 0695d57 commit 8563b31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/WiFi/src/WiFiClient.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,10 @@ int WiFiClient::connect(const char *host, uint16_t port, int32_t timeout_ms)
316316
}
317317
if (srv6.type == IPADDR_TYPE_V4) {
318318
IPAddress ip(srv6.u_addr.ip4.addr);
319-
return connect(ip, port, timeout);
319+
return connect(ip, port, timeout_ms);
320320
} else {
321321
IPAddress ip(IPv6, (uint8_t*)&srv6.u_addr.ip6.addr[0]);
322-
return connect(ip, port, timeout);
322+
return connect(ip, port, timeout_ms);
323323
}
324324
}
325325
IPAddress srv((uint32_t)0);

0 commit comments

Comments
 (0)