We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2cceca commit 64ffce9Copy full SHA for 64ffce9
libraries/WiFiS3/src/WiFi.cpp
@@ -551,11 +551,10 @@ unsigned long CWifi::getTime() {
551
/* ----------------------------------------------*/
552
modem.begin();
553
string res = "";
554
- unsigned long tt = 0;
555
if(modem.write(string(PROMPT(_GETTIME)),res,"%s\r\n", CMD_WRITE(_GETTIME))) {
556
- tt = strtol(res.c_str(), NULL, 10);
+ return strtol(res.c_str(), NULL, 10);
557
}
558
- return tt;
+ return 0;
559
560
561
void CWifi::setTimeout(unsigned long timeout) {
0 commit comments