EXTRUDER_RUNOUT_PREVENT uses buffer_line_kinematic

This commit is contained in:
Scott Lahteine 2017-03-20 16:41:59 -05:00
parent cd882b88db
commit af2ea23e9c

View File

@ -10500,23 +10500,12 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
previous_cmd_ms = ms; // refresh_cmd_timeout() previous_cmd_ms = ms; // refresh_cmd_timeout()
#if IS_KINEMATIC const float olde = current_position[E_AXIS];
inverse_kinematics(current_position); current_position[E_AXIS] += EXTRUDER_RUNOUT_EXTRUDE;
ADJUST_DELTA(current_position); planner.buffer_line_kinematic(current_position, MMM_TO_MMS(EXTRUDER_RUNOUT_SPEED), active_extruder);
planner.buffer_line( current_position[E_AXIS] = olde;
delta[A_AXIS], delta[B_AXIS], delta[C_AXIS], planner.set_e_position_mm(olde);
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]);
#if ENABLED(SWITCHING_EXTRUDER) #if ENABLED(SWITCHING_EXTRUDER)
E0_ENABLE_WRITE(oldstatus); E0_ENABLE_WRITE(oldstatus);
#else #else