Skip to content

Commit 64ffce9

Browse files
committed
getTime: remove not necessary variable
1 parent a2cceca commit 64ffce9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libraries/WiFiS3/src/WiFi.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -551,11 +551,10 @@ unsigned long CWifi::getTime() {
551551
/* ----------------------------------------------*/
552552
modem.begin();
553553
string res = "";
554-
unsigned long tt = 0;
555554
if(modem.write(string(PROMPT(_GETTIME)),res,"%s\r\n", CMD_WRITE(_GETTIME))) {
556-
tt = strtol(res.c_str(), NULL, 10);
555+
return strtol(res.c_str(), NULL, 10);
557556
}
558-
return tt;
557+
return 0;
559558
}
560559

561560
void CWifi::setTimeout(unsigned long timeout) {

0 commit comments

Comments
 (0)