Unverified Commit 5f77b010 authored by Me No Dev's avatar Me No Dev Committed by GitHub

Fix return of Print::print(timeinfo, format) (#3189)

parent 717ca79e
......@@ -159,8 +159,10 @@ size_t Print::print(struct tm * timeinfo, const char * format)
}
char buf[64];
size_t written = strftime(buf, 64, f, timeinfo);
print(buf);
return written;
if(written == 0){
return written;
}
return print(buf);
}
size_t Print::println(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment