Browse Source
Merge pull request #9220 from benlye/lcd-timer
[2.0.x] Fix LCD timer string length
pull/1/head
Scott Lahteine
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
Marlin/src/libs/duration_t.h
|
@ -151,7 +151,7 @@ struct duration_t { |
|
|
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("%ud %02u:%02u"), d, h % 24, m); |
|
|
return d >= 10 ? 8 : 7; |
|
|
return d >= 10 ? 9 : 8; |
|
|
} |
|
|
} |
|
|
else if (h < 100) { |
|
|
else if (h < 100) { |
|
|
sprintf_P(buffer, PSTR("%02u:%02u"), h % 24, m); |
|
|
sprintf_P(buffer, PSTR("%02u:%02u"), h % 24, m); |
|
|