mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-15 12:29:26 +01:00
Porting HD API ver. 2.7
This commit is contained in:
parent
6e149c4e32
commit
47e6129e01
@ -430,12 +430,12 @@ int WiFiDrv::getHostByName(const char* aHostname, IPAddress& aResult)
|
|||||||
{
|
{
|
||||||
while(!getHostByName(aResult) && --retry > 0)
|
while(!getHostByName(aResult) && --retry > 0)
|
||||||
{
|
{
|
||||||
delay(500);
|
delay(1000);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return 1;
|
return (retry>0);
|
||||||
}
|
}
|
||||||
|
|
||||||
WiFiDrv wiFiDrv;
|
WiFiDrv wiFiDrv;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user