Browse Source

Fix Power-Loss Save on Pause (#21749)

vanilla_fb_2.0.x
tobuh 4 years ago
committed by Scott Lahteine
parent
commit
5625ceec7d
  1. 3
      Marlin/src/gcode/feature/pause/M125.cpp

3
Marlin/src/gcode/feature/pause/M125.cpp

@ -78,8 +78,9 @@ void GcodeSuite::M125() {
// If possible, show an LCD prompt with the 'P' flag // If possible, show an LCD prompt with the 'P' flag
const bool show_lcd = TERN0(HAS_LCD_MENU, parser.boolval('P')); const bool show_lcd = TERN0(HAS_LCD_MENU, parser.boolval('P'));
if (pause_print(retract, park_point, 0, show_lcd)) {
TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true)); TERN_(POWER_LOSS_RECOVERY, if (recovery.enabled) recovery.save(true));
if (pause_print(retract, park_point, 0, show_lcd)) {
if (ENABLED(EXTENSIBLE_UI) || !sd_printing || show_lcd) { if (ENABLED(EXTENSIBLE_UI) || !sd_printing || show_lcd) {
wait_for_confirmation(false, 0); wait_for_confirmation(false, 0);
resume_print(0, 0, -retract, 0); resume_print(0, 0, -retract, 0);

Loading…
Cancel
Save