Browse Source

Fix formatting of print time hours above one day

teemuatlut 7 years ago
parent
commit
9175d16660
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/duration_t.h

+ 1
- 1
Marlin/duration_t.h View File

@@ -150,7 +150,7 @@ struct duration_t {
150 150
              m = uint16_t(this->minute() % 60UL);
151 151
     if (with_days) {
152 152
       uint16_t d = this->day();
153
-      sprintf_P(buffer, PSTR("%ud %02u:%02u"), d, h, m);
153
+      sprintf_P(buffer, PSTR("%ud %02u:%02u"), d, h % 24, m);
154 154
       return d >= 10 ? 8 : 7;
155 155
     }
156 156
     else if (h < 100) {

Loading…
Cancel
Save