Fix formatting of print time hours above one day
This commit is contained in:
parent
05b217c0d0
commit
9175d16660
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ struct duration_t {
|
||||||
m = uint16_t(this->minute() % 60UL);
|
m = uint16_t(this->minute() % 60UL);
|
||||||
if (with_days) {
|
if (with_days) {
|
||||||
uint16_t d = this->day();
|
uint16_t d = this->day();
|
||||||
sprintf_P(buffer, PSTR("%ud %02u:%02u"), d, h, m);
|
sprintf_P(buffer, PSTR("%ud %02u:%02u"), d, h % 24, m);
|
||||||
return d >= 10 ? 8 : 7;
|
return d >= 10 ? 8 : 7;
|
||||||
}
|
}
|
||||||
else if (h < 100) {
|
else if (h < 100) {
|
||||||
|
|
Reference in a new issue