Browse Source

Fixes #4576: Convert filamentUsed to long for display

Scott Lahteine 8 years ago
parent
commit
58c8e6cef2
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/ultralcd.cpp View File

@@ -1983,7 +1983,7 @@ void kill_screen(const char* lcd_msg) {
1983 1983
         STATIC_ITEM(MSG_INFO_PRINT_LONGEST ": ", false, false);                                        // Longest job time:
1984 1984
         STATIC_ITEM("", false, false, buffer);                                                         // 99y 364d 23h 59m 59s
1985 1985
 
1986
-        sprintf_P(buffer, PSTR("%im"), stats.filamentUsed / 1000);
1986
+        sprintf_P(buffer, PSTR("%ldm"), long(stats.filamentUsed / 1000));
1987 1987
         STATIC_ITEM(MSG_INFO_PRINT_FILAMENT ": ", false, false);                                       // Extruded total:
1988 1988
         STATIC_ITEM("", false, false, buffer);                                                         // 125m
1989 1989
         END_SCREEN();

Loading…
Cancel
Save