mirror of
https://github.com/esp8266/Arduino.git
synced 2025-09-06 19:08:12 +03:00
fix formatting (#5459)
This commit is contained in:
@@ -40,19 +40,19 @@ static void ping_done(void* options, void* resp)
|
|||||||
|
|
||||||
TEST_CASE("pings sent/answered", "[lwip]")
|
TEST_CASE("pings sent/answered", "[lwip]")
|
||||||
{
|
{
|
||||||
IPAddress address;
|
IPAddress address;
|
||||||
if (WiFi.hostByName(getenv("SERVER_IP"), address))
|
if (WiFi.hostByName(getenv("SERVER_IP"), address))
|
||||||
{
|
{
|
||||||
po.ip = address;
|
po.ip = address;
|
||||||
po.count = PING_COUNT;
|
po.count = PING_COUNT;
|
||||||
po.coarse_time = 1;
|
po.coarse_time = 1;
|
||||||
po.sent_function = &ping_done;
|
po.sent_function = &ping_done;
|
||||||
po.recv_function = &ping_recv;
|
po.recv_function = &ping_recv;
|
||||||
ping_start(&po);
|
ping_start(&po);
|
||||||
delay((PING_COUNT+2)*1000);
|
delay((PING_COUNT+2)*1000);
|
||||||
}
|
}
|
||||||
REQUIRE(recv_count == PING_COUNT);
|
REQUIRE(recv_count == PING_COUNT);
|
||||||
REQUIRE(done_count == PING_COUNT);
|
REQUIRE(done_count == PING_COUNT);
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
|
Reference in New Issue
Block a user