|
|
@ -151,15 +151,15 @@ 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 % 24, m);
|
|
|
|
sprintf_P(buffer, PSTR("%hud %02hu:%02hu"), d, h % 24, m);
|
|
|
|
return d >= 10 ? 9 : 8;
|
|
|
|
return d >= 10 ? 9 : 8;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (h < 100) {
|
|
|
|
else if (h < 100) {
|
|
|
|
sprintf_P(buffer, PSTR("%02u:%02u"), h, m);
|
|
|
|
sprintf_P(buffer, PSTR("%02hu:%02hu"), h, m);
|
|
|
|
return 5;
|
|
|
|
return 5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
sprintf_P(buffer, PSTR("%u:%02u"), h, m);
|
|
|
|
sprintf_P(buffer, PSTR("%hu:%02hu"), h, m);
|
|
|
|
return 6;
|
|
|
|
return 6;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|