Browse Source

no need to use destination in do_pause_e_move

pull/1/head
Scott Lahteine 6 years ago
parent
commit
cf0b9eb37c
  1. 6
      Marlin/src/feature/pause.cpp

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

Loading…
Cancel
Save