|
@@ -1972,17 +1972,26 @@ void kill_screen(const char* lcd_msg) {
|
1972
|
1972
|
static void lcd_info_stats_menu() {
|
1973
|
1973
|
if (LCD_CLICKED) { lcd_goto_previous_menu(true); return; }
|
1974
|
1974
|
|
|
1975
|
+ char buffer[21];
|
1975
|
1976
|
printStatistics stats = print_job_timer.getStats();
|
|
1977
|
+
|
|
1978
|
+ START_SCREEN(); // 12345678901234567890
|
|
1979
|
+ STATIC_ITEM(MSG_INFO_PRINT_COUNT ": ", false, false, itostr3left(stats.totalPrints)); // Print Count: 999
|
|
1980
|
+ STATIC_ITEM(MSG_INFO_COMPLETED_PRINTS" : ", false, false, itostr3left(stats.finishedPrints)); // Completed : 666
|
|
1981
|
+
|
1976
|
1982
|
timestamp_t time(stats.printTime);
|
|
1983
|
+ time.toString(buffer);
|
|
1984
|
+ STATIC_ITEM(MSG_INFO_PRINT_TIME ": ", false, false); // Total print Time:
|
|
1985
|
+ STATIC_ITEM("", false, false, buffer); // 99y 364d 23h 59m 59s
|
1977
|
1986
|
|
1978
|
|
- char buffer[21];
|
|
1987
|
+ time.timestamp = stats.longestPrint;
|
1979
|
1988
|
time.toString(buffer);
|
|
1989
|
+ STATIC_ITEM(MSG_INFO_PRINT_LONGEST ": ", false, false); // Longest job time:
|
|
1990
|
+ STATIC_ITEM("", false, false, buffer); // 99y 364d 23h 59m 59s
|
1980
|
1991
|
|
1981
|
|
- START_SCREEN(); // 12345678901234567890
|
1982
|
|
- STATIC_ITEM(MSG_INFO_PRINT_COUNT ": ", false, false, itostr3left(stats.totalPrints)); // Print Count: 999
|
1983
|
|
- STATIC_ITEM(MSG_INFO_COMPLETED_PRINTS": ", false, false, itostr3left(stats.finishedPrints)); // Completed : 666
|
1984
|
|
- STATIC_ITEM(MSG_INFO_PRINT_TIME ": ", false, false); // Total Time :
|
1985
|
|
- STATIC_ITEM(" ", false, false, buffer); // 12345d 12h 34m
|
|
1992
|
+ sprintf_P(buffer, PSTR("%im"), stats.filamentUsed / 1000);
|
|
1993
|
+ STATIC_ITEM(MSG_INFO_PRINT_FILAMENT ": ", false, false); // Extruded total:
|
|
1994
|
+ STATIC_ITEM("", false, false, buffer); // 125m
|
1986
|
1995
|
END_SCREEN();
|
1987
|
1996
|
}
|
1988
|
1997
|
#endif // PRINTCOUNTER
|