|
|
@ -1972,17 +1972,26 @@ void kill_screen(const char* lcd_msg) {
|
|
|
|
static void lcd_info_stats_menu() {
|
|
|
|
static void lcd_info_stats_menu() {
|
|
|
|
if (LCD_CLICKED) { lcd_goto_previous_menu(true); return; }
|
|
|
|
if (LCD_CLICKED) { lcd_goto_previous_menu(true); return; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
char buffer[21];
|
|
|
|
printStatistics stats = print_job_timer.getStats();
|
|
|
|
printStatistics stats = print_job_timer.getStats();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
START_SCREEN(); // 12345678901234567890
|
|
|
|
|
|
|
|
STATIC_ITEM(MSG_INFO_PRINT_COUNT ": ", false, false, itostr3left(stats.totalPrints)); // Print Count: 999
|
|
|
|
|
|
|
|
STATIC_ITEM(MSG_INFO_COMPLETED_PRINTS" : ", false, false, itostr3left(stats.finishedPrints)); // Completed : 666
|
|
|
|
|
|
|
|
|
|
|
|
timestamp_t time(stats.printTime);
|
|
|
|
timestamp_t time(stats.printTime);
|
|
|
|
|
|
|
|
time.toString(buffer);
|
|
|
|
|
|
|
|
STATIC_ITEM(MSG_INFO_PRINT_TIME ": ", false, false); // Total print Time:
|
|
|
|
|
|
|
|
STATIC_ITEM("", false, false, buffer); // 99y 364d 23h 59m 59s
|
|
|
|
|
|
|
|
|
|
|
|
char buffer[21];
|
|
|
|
time.timestamp = stats.longestPrint;
|
|
|
|
time.toString(buffer);
|
|
|
|
time.toString(buffer);
|
|
|
|
|
|
|
|
STATIC_ITEM(MSG_INFO_PRINT_LONGEST ": ", false, false); // Longest job time:
|
|
|
|
|
|
|
|
STATIC_ITEM("", false, false, buffer); // 99y 364d 23h 59m 59s
|
|
|
|
|
|
|
|
|
|
|
|
START_SCREEN(); // 12345678901234567890
|
|
|
|
sprintf_P(buffer, PSTR("%im"), stats.filamentUsed / 1000);
|
|
|
|
STATIC_ITEM(MSG_INFO_PRINT_COUNT ": ", false, false, itostr3left(stats.totalPrints)); // Print Count: 999
|
|
|
|
STATIC_ITEM(MSG_INFO_PRINT_FILAMENT ": ", false, false); // Extruded total:
|
|
|
|
STATIC_ITEM(MSG_INFO_COMPLETED_PRINTS": ", false, false, itostr3left(stats.finishedPrints)); // Completed : 666
|
|
|
|
STATIC_ITEM("", false, false, buffer); // 125m
|
|
|
|
STATIC_ITEM(MSG_INFO_PRINT_TIME ": ", false, false); // Total Time :
|
|
|
|
|
|
|
|
STATIC_ITEM(" ", false, false, buffer); // 12345d 12h 34m
|
|
|
|
|
|
|
|
END_SCREEN();
|
|
|
|
END_SCREEN();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif // PRINTCOUNTER
|
|
|
|
#endif // PRINTCOUNTER
|
|
|
|