mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Fix return value of WiFiClient::connect (#511)
This commit is contained in:
parent
212a2cfa60
commit
6f63ad1ee4
@ -110,7 +110,7 @@ int WiFiClient::connect(IPAddress ip, uint16_t port)
|
|||||||
netif* interface = ip_route(&addr);
|
netif* interface = ip_route(&addr);
|
||||||
if (!interface) {
|
if (!interface) {
|
||||||
DEBUGV("no route to host\r\n");
|
DEBUGV("no route to host\r\n");
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
tcp_pcb* pcb = tcp_new();
|
tcp_pcb* pcb = tcp_new();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user