Fix LCD timer string length
This commit is contained in:
parent
9d0cf02fef
commit
7c18c2ea5f
|
@ -151,7 +151,7 @@ struct duration_t {
|
|||
if (with_days) {
|
||||
uint16_t d = this->day();
|
||||
sprintf_P(buffer, PSTR("%ud %02u:%02u"), d, h % 24, m);
|
||||
return d >= 10 ? 8 : 7;
|
||||
return d >= 10 ? 9 : 8;
|
||||
}
|
||||
else if (h < 100) {
|
||||
sprintf_P(buffer, PSTR("%02u:%02u"), h % 24, m);
|
||||
|
|
Loading…
Reference in a new issue