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:
@ -38,10 +38,8 @@
|
||||
* This has no effect during an SD print job
|
||||
*/
|
||||
void GcodeSuite::M73() {
|
||||
if (!IS_SD_PRINTING() && parser.seen('P')) {
|
||||
progress_bar_percent = parser.value_byte();
|
||||
NOMORE(progress_bar_percent, 100);
|
||||
}
|
||||
if (parser.seen('P') && !IS_SD_PRINTING())
|
||||
ui.set_progress(parser.value_byte());
|
||||
}
|
||||
|
||||
#endif // ULTRA_LCD && LCD_SET_PROGRESS_MANUALLY
|
||||
|
Reference in New Issue
Block a user