Encapsulate common display code in a singleton (#12395)
* Encapsulate common LCD code in a singleton * Depend more UBL code on UBL_DEVEL_DEBUGGING - Since most users don't need the debugging on at all times, this helps reduce the default build size for UBL by over 2K, a little closer to fitting on 128K boards.
This commit is contained in:
@ -446,7 +446,7 @@ void CardReader::openFile(char * const path, const bool read, const bool subcall
|
||||
SERIAL_PROTOCOLLNPGM(MSG_SD_FILE_SELECTED);
|
||||
|
||||
getfilename(0, fname);
|
||||
lcd_setstatus(longFilename[0] ? longFilename : fname);
|
||||
ui.setstatus(longFilename[0] ? longFilename : fname);
|
||||
//if (longFilename[0]) {
|
||||
// SERIAL_PROTOCOLPAIR(MSG_SD_FILE_LONG_NAME, longFilename);
|
||||
//}
|
||||
@ -470,7 +470,7 @@ void CardReader::openFile(char * const path, const bool read, const bool subcall
|
||||
emergency_parser.disable();
|
||||
#endif
|
||||
SERIAL_PROTOCOLLNPAIR(MSG_SD_WRITE_TO_FILE, fname);
|
||||
lcd_setstatus(fname);
|
||||
ui.setstatus(fname);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -963,10 +963,10 @@ void CardReader::printingHasFinished() {
|
||||
presort();
|
||||
#endif
|
||||
#if ENABLED(ULTRA_LCD) && ENABLED(LCD_SET_PROGRESS_MANUALLY)
|
||||
progress_bar_percent = 0;
|
||||
ui.progress_bar_percent = 0;
|
||||
#endif
|
||||
#if ENABLED(SD_REPRINT_LAST_SELECTED_FILE)
|
||||
lcd_reselect_last_file();
|
||||
ui.reselect_last_file();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user