Normalize load/unload length in M600
This commit is contained in:
parent
2a54fd1444
commit
4714fb8fcb
2 changed files with 4 additions and 3 deletions
|
|
@ -736,7 +736,8 @@ void Planner::_buffer_line(const float &a, const float &b, const float &c, const
|
|||
SERIAL_ECHOLNPGM(MSG_ERR_COLD_EXTRUDE_STOP);
|
||||
}
|
||||
#if ENABLED(PREVENT_LENGTHY_EXTRUDE)
|
||||
if (labs(de) > (int32_t)axis_steps_per_mm[E_AXIS_N] * (EXTRUDE_MAXLENGTH)) { // It's not important to get max. extrusion length in a precision < 1mm, so save some cycles and cast to int
|
||||
int32_t de_mm = labs(de * volumetric_multiplier[active_extruder]);
|
||||
if (de_mm > (int32_t)axis_steps_per_mm[E_AXIS_N] * (EXTRUDE_MAXLENGTH)) { // It's not important to get max. extrusion length in a precision < 1mm, so save some cycles and cast to int
|
||||
position[E_AXIS] = target[E_AXIS]; // Behave as if the move really took place, but ignore E part
|
||||
de = 0; // no difference
|
||||
#if ENABLED(LIN_ADVANCE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue