Make EXTRUDER_RUNOUT_PREVENT kinematic compatible
This commit is contained in:
parent
847429eff4
commit
e4e290d957
@ -9463,11 +9463,22 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
|
|||||||
#endif // !SWITCHING_EXTRUDER
|
#endif // !SWITCHING_EXTRUDER
|
||||||
|
|
||||||
previous_cmd_ms = ms; // refresh_cmd_timeout()
|
previous_cmd_ms = ms; // refresh_cmd_timeout()
|
||||||
planner.buffer_line(
|
|
||||||
current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS],
|
#if IS_KINEMATIC
|
||||||
current_position[E_AXIS] + EXTRUDER_RUNOUT_EXTRUDE,
|
inverse_kinematics(current_position);
|
||||||
MMM_TO_MMS(EXTRUDER_RUNOUT_SPEED), active_extruder
|
ADJUST_DELTA(current_position);
|
||||||
);
|
planner.buffer_line(
|
||||||
|
delta[A_AXIS], delta[B_AXIS], delta[C_AXIS],
|
||||||
|
current_position[E_AXIS] + EXTRUDER_RUNOUT_EXTRUDE,
|
||||||
|
MMM_TO_MMS(EXTRUDER_RUNOUT_SPEED), active_extruder
|
||||||
|
);
|
||||||
|
#else
|
||||||
|
planner.buffer_line(
|
||||||
|
current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS],
|
||||||
|
current_position[E_AXIS] + EXTRUDER_RUNOUT_EXTRUDE,
|
||||||
|
MMM_TO_MMS(EXTRUDER_RUNOUT_SPEED), active_extruder
|
||||||
|
);
|
||||||
|
#endif
|
||||||
stepper.synchronize();
|
stepper.synchronize();
|
||||||
planner.set_e_position_mm(current_position[E_AXIS]);
|
planner.set_e_position_mm(current_position[E_AXIS]);
|
||||||
#if ENABLED(SWITCHING_EXTRUDER)
|
#if ENABLED(SWITCHING_EXTRUDER)
|
||||||
|
Loading…
Reference in New Issue
Block a user