Allow M73 to override SD position (#15449)

This commit is contained in:
LinFor 2019-10-08 00:38:58 +03:00 committed by Scott Lahteine
parent d04561805b
commit 19b7be067c
2 changed files with 2 additions and 2 deletions

View File

@ -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());
}

View File

@ -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);
}