Skip to content

Commit 274c701

Browse files
committed
Correct WiFi::ping return value on success
1 parent 0a51282 commit 274c701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WiFi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ int WiFiClass::ping(IPAddress host, uint8_t ttl)
906906
} else {
907907
int rtt = (int)_resolve;
908908
_resolve = 0;
909-
return _resolve;
909+
return rtt;
910910
}
911911
}
912912

0 commit comments

Comments
 (0)