Skip to content

Commit 8dda05e

Browse files
authored
Merge pull request #4258 from clexpert/patch-2
Total print time for LCD correction (hours:minutes format)
2 parents 0ccc5d1 + eaf9e61 commit 8dda05e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/ultralcd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,7 @@ void kill_screen(const char* lcd_msg) {
19531953
printStatistics stats = print_job_counter.getStats();
19541954

19551955
char printTime[6];
1956-
sprintf(printTime, "%02d:%02d", int(stats.printTime / 60), int(stats.printTime % 60));
1956+
sprintf(printTime, "%02d:%02d", int(stats.printTime / 3600), int(stats.printTime / 60) % 60);
19571957

19581958
if (LCD_CLICKED) lcd_goto_previous_menu(true);
19591959
START_SCREEN();

0 commit comments

Comments
 (0)