Allow M73 to override SD position (#15449)
This commit is contained in:
parent
d04561805b
commit
19b7be067c
|
@ -38,7 +38,7 @@
|
||||||
* This has no effect during an SD print job
|
* This has no effect during an SD print job
|
||||||
*/
|
*/
|
||||||
void GcodeSuite::M73() {
|
void GcodeSuite::M73() {
|
||||||
if (parser.seen('P') && !IS_SD_PRINTING())
|
if (parser.seen('P'))
|
||||||
ui.set_progress(parser.value_byte());
|
ui.set_progress(parser.value_byte());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1546,7 +1546,7 @@ void MarlinUI::update() {
|
||||||
uint8_t progress = 0;
|
uint8_t progress = 0;
|
||||||
#endif
|
#endif
|
||||||
#if ENABLED(SDSUPPORT)
|
#if ENABLED(SDSUPPORT)
|
||||||
if (IS_SD_PRINTING()) progress = card.percentDone();
|
if (!_PLIMIT(progress)) progress = card.percentDone();
|
||||||
#endif
|
#endif
|
||||||
return _PLIMIT(progress);
|
return _PLIMIT(progress);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue