Skip to content

Commit

Permalink
prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed May 8, 2021
1 parent d598f0b commit 49d7953
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Marlin/src/feature/pause.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,19 +421,14 @@ bool pause_print(const_float_t retract, const xyz_pos_t &park_point, const bool
// Will the nozzle be parking?
const bool do_park = !axes_should_home();

// For PLR we'll need to supply a raise distance
#if ENABLED(POWER_LOSS_RECOVERY)
// Save PLR info in case the power goes out while parked
const float park_raise = do_park ? nozzle.park_mode_0_height(park_point.z) - current_position.z : POWER_LOSS_ZRAISE;
#endif

// Save PLR info in case the power goes out while parked
#if ENABLED(POWER_LOSS_RECOVERY)
if (IS_SD_PRINTING() && recovery.enabled) recovery.save(true, park_raise, do_park);
#endif

// If axes don't need to home then the nozzle can park
if (do_park)
nozzle.park(0, park_point); // Park the nozzle by doing a Minimum Z Raise followed by an XY Move
if (do_park) nozzle.park(0, park_point); // Park the nozzle by doing a Minimum Z Raise followed by an XY Move

#if ENABLED(DUAL_X_CARRIAGE)
const int8_t saved_ext = active_extruder;
Expand Down

0 comments on commit 49d7953

Please sign in to comment.