Skip to content

Commit cd92686

Browse files
author
Alessio Leoncini
committed
Fixed compiler issues
1 parent 4532539 commit cd92686

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/PingIp/PingIp.ino

+4-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void setup()
3535
void loop()
3636
{
3737
// Ping Google DNS
38-
int responseTime = Pinger::Ping(IpAddress(8, 8, 8, 8));
38+
int responseTime = Pinger::Ping(IPAddress(8, 8, 8, 8));
3939

4040
// Print it
4141
if(responseTime == -1)
@@ -44,7 +44,9 @@ void loop()
4444
}
4545
else
4646
{
47-
Serial.println("Echo response received from 8.8.8.8 in %dms", responseTime);
47+
Serial.print("Echo response received from 8.8.8.8 in ");
48+
Serial.print(responseTime);
49+
Serial.print("ms.\n");
4850
}
4951

5052
// Wait a while

0 commit comments

Comments
 (0)