Skip to content

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

+8-8
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)