Browse Source

Total print time for LCD correction (hours:minutes format)

Petr Zahradnik 9 years ago
parent
commit
eaf9e615ce
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/ultralcd.cpp View File

1953
         printStatistics stats = print_job_counter.getStats();
1953
         printStatistics stats = print_job_counter.getStats();
1954
 
1954
 
1955
         char printTime[6];
1955
         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);
1957
 
1957
 
1958
         if (LCD_CLICKED) lcd_goto_previous_menu(true);
1958
         if (LCD_CLICKED) lcd_goto_previous_menu(true);
1959
         START_SCREEN();
1959
         START_SCREEN();

Loading…
Cancel
Save