Skip to content

Commit

Permalink
Fixes #4576: Convert filamentUsed to long for display
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored Aug 10, 2016
1 parent 01f1f77 commit 58c8e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1983,7 +1983,7 @@ void kill_screen(const char* lcd_msg) {
STATIC_ITEM(MSG_INFO_PRINT_LONGEST ": ", false, false); // Longest job time:
STATIC_ITEM("", false, false, buffer); // 99y 364d 23h 59m 59s

sprintf_P(buffer, PSTR("%im"), stats.filamentUsed / 1000);
sprintf_P(buffer, PSTR("%ldm"), long(stats.filamentUsed / 1000));
STATIC_ITEM(MSG_INFO_PRINT_FILAMENT ": ", false, false); // Extruded total:
STATIC_ITEM("", false, false, buffer); // 125m
END_SCREEN();
Expand Down

0 comments on commit 58c8e6c

Please sign in to comment.