Fix return of Print::print(timeinfo, format) (#3189)
This commit is contained in:
parent
717ca79ecb
commit
5f77b0108b
@ -159,9 +159,11 @@ size_t Print::print(struct tm * timeinfo, const char * format)
|
||||
}
|
||||
char buf[64];
|
||||
size_t written = strftime(buf, 64, f, timeinfo);
|
||||
print(buf);
|
||||
if(written == 0){
|
||||
return written;
|
||||
}
|
||||
return print(buf);
|
||||
}
|
||||
|
||||
size_t Print::println(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user