Fixes #4576: Convert filamentUsed to long for display

This commit is contained in:
Scott Lahteine 2016-08-09 23:57:28 -07:00 committed by GitHub
parent 01f1f779a5
commit 58c8e6cef2

View File

@ -1983,7 +1983,7 @@ void kill_screen(const char* lcd_msg) {
STATIC_ITEM(MSG_INFO_PRINT_LONGEST ": ", false, false); // Longest job time: STATIC_ITEM(MSG_INFO_PRINT_LONGEST ": ", false, false); // Longest job time:
STATIC_ITEM("", false, false, buffer); // 99y 364d 23h 59m 59s 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(MSG_INFO_PRINT_FILAMENT ": ", false, false); // Extruded total:
STATIC_ITEM("", false, false, buffer); // 125m STATIC_ITEM("", false, false, buffer); // 125m
END_SCREEN(); END_SCREEN();