mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-18 15:39:31 +00:00
no need to use destination in do_pause_e_move
This commit is contained in:
parent
e8d677620c
commit
cf0b9eb37c
1 changed files with 2 additions and 4 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue