From cf0b9eb37cd8ce188941c3cfbe33a68ca39be297 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 6 Oct 2018 16:36:24 -0500 Subject: [PATCH] no need to use destination in do_pause_e_move --- Marlin/src/feature/pause.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Marlin/src/feature/pause.cpp b/Marlin/src/feature/pause.cpp index b5adb4add3..625b80360f 100644 --- a/Marlin/src/feature/pause.cpp +++ b/Marlin/src/feature/pause.cpp @@ -113,10 +113,8 @@ static bool ensure_safe_temperature(const AdvancedPauseMode mode=ADVANCED_PAUSE_ } static void do_pause_e_move(const float &length, const float &fr) { - set_destination_from_current(); - destination[E_AXIS] += length / planner.e_factor[active_extruder]; - planner.buffer_line(destination, fr, active_extruder); - set_current_from_destination(); + current_position[E_AXIS] += length / planner.e_factor[active_extruder]; + planner.buffer_line(current_position, fr, active_extruder); planner.synchronize(); }