Print progress enhancements (#14647)
This commit is contained in:
committed by
Scott Lahteine
parent
ebb1a7dc1f
commit
27c487bab7
@ -1008,18 +1008,16 @@ void CardReader::printingHasFinished() {
|
||||
#endif
|
||||
|
||||
print_job_timer.stop();
|
||||
if (print_job_timer.duration() > 60) queue.inject_P(PSTR("M31"));
|
||||
queue.enqueue_now_P(print_job_timer.duration() > 60 ? PSTR("M31") : PSTR("M117"));
|
||||
|
||||
#if ENABLED(SDCARD_SORT_ALPHA)
|
||||
presort();
|
||||
#endif
|
||||
|
||||
#if EITHER(ULTRA_LCD, EXTENSIBLE_UI) && ENABLED(LCD_SET_PROGRESS_MANUALLY)
|
||||
ui.progress_bar_percent = 0;
|
||||
#if ENABLED(LCD_SET_PROGRESS_MANUALLY)
|
||||
ui.set_progress_done();
|
||||
#endif
|
||||
|
||||
ui.reset_status();
|
||||
|
||||
#if ENABLED(SD_REPRINT_LAST_SELECTED_FILE)
|
||||
ui.reselect_last_file();
|
||||
#endif
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
#include "Sd2Card_FlashDrive.h"
|
||||
|
||||
#if EITHER(ULTRA_LCD, EXTENSIBLE_UI)
|
||||
#if HAS_DISPLAY
|
||||
#include "../../lcd/ultralcd.h"
|
||||
#endif
|
||||
|
||||
@ -63,7 +63,7 @@ void Sd2Card::idle() {
|
||||
SERIAL_ECHOPGM("Starting USB host...");
|
||||
if (!usb.start()) {
|
||||
SERIAL_ECHOPGM(" Failed. Retrying in 2s.");
|
||||
#if EITHER(ULTRA_LCD, EXTENSIBLE_UI)
|
||||
#if HAS_DISPLAY
|
||||
LCD_MESSAGEPGM("USB start failed");
|
||||
#endif
|
||||
state = USB_HOST_DELAY_INIT;
|
||||
|
Reference in New Issue
Block a user