From 19b7be067c02f138a48d208fa2cc5d16f63b9dba Mon Sep 17 00:00:00 2001 From: LinFor Date: Tue, 8 Oct 2019 00:38:58 +0300 Subject: [PATCH] Allow M73 to override SD position (#15449) --- Marlin/src/gcode/lcd/M73.cpp | 2 +- Marlin/src/lcd/ultralcd.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/gcode/lcd/M73.cpp b/Marlin/src/gcode/lcd/M73.cpp index 85fb7831e..171d8bbad 100644 --- a/Marlin/src/gcode/lcd/M73.cpp +++ b/Marlin/src/gcode/lcd/M73.cpp @@ -38,7 +38,7 @@ * This has no effect during an SD print job */ void GcodeSuite::M73() { - if (parser.seen('P') && !IS_SD_PRINTING()) + if (parser.seen('P')) ui.set_progress(parser.value_byte()); } diff --git a/Marlin/src/lcd/ultralcd.cpp b/Marlin/src/lcd/ultralcd.cpp index 10864da1c..9b6b47511 100644 --- a/Marlin/src/lcd/ultralcd.cpp +++ b/Marlin/src/lcd/ultralcd.cpp @@ -1546,7 +1546,7 @@ void MarlinUI::update() { uint8_t progress = 0; #endif #if ENABLED(SDSUPPORT) - if (IS_SD_PRINTING()) progress = card.percentDone(); + if (!_PLIMIT(progress)) progress = card.percentDone(); #endif return _PLIMIT(progress); }