Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7af8623

Browse files
andreagilardonipennam
authored andcommitted
ping: fix alignment
1 parent 2f38268 commit 7af8623

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎libraries/WiFiS3/src/WiFi.cpp‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -564,19 +564,19 @@ void CWifi::setTimeout(unsigned long timeout) {
564564
/* -------------------------------------------------------------------------- */
565565
float CWifi::ping(IPAddress ip, unsigned int count) {
566566
/* -------------------------------------------------------------------------- */
567-
return ping(ip.toString().c_str(), count);
567+
return ping(ip.toString().c_str(), count);
568568
}
569569

570570
/* -------------------------------------------------------------------------- */
571571
float CWifi::ping(const char* host, unsigned int count) {
572572
/* -------------------------------------------------------------------------- */
573-
modem.begin();
574-
string res = "";
575-
if (modem.write(string(PROMPT(_PINGNAME)),res, "%s,%s,%d\r\n", CMD_WRITE(_PINGNAME), host, count)) {
576-
String rsl = res.c_str();
577-
return rsl.toFloat();
578-
}
579-
return 0;
573+
modem.begin();
574+
string res = "";
575+
if (modem.write(string(PROMPT(_PING)),res, "%s,%s,%d\r\n", CMD_WRITE(_PING), host, count)) {
576+
String rsl = res.c_str();
577+
return rsl.toFloat();
578+
}
579+
return 0;
580580
}
581581

582582
CWifi WiFi;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /