no need to use destination in do_pause_e_move

This commit is contained in:
Scott Lahteine 2018-10-06 16:36:24 -05:00
parent e8d677620c
commit cf0b9eb37c

View file

@ -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) { static void do_pause_e_move(const float &length, const float &fr) {
set_destination_from_current(); current_position[E_AXIS] += length / planner.e_factor[active_extruder];
destination[E_AXIS] += length / planner.e_factor[active_extruder]; planner.buffer_line(current_position, fr, active_extruder);
planner.buffer_line(destination, fr, active_extruder);
set_current_from_destination();
planner.synchronize(); planner.synchronize();
} }