Browse Source

Allow M73 to override SD position (#15449)

pull/1/head
LinFor 5 years ago
committed by Scott Lahteine
parent
commit
19b7be067c
  1. 2
      Marlin/src/gcode/lcd/M73.cpp
  2. 2
      Marlin/src/lcd/ultralcd.cpp

2
Marlin/src/gcode/lcd/M73.cpp

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

2
Marlin/src/lcd/ultralcd.cpp

@ -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…
Cancel
Save