|
@@ -495,12 +495,14 @@ void plan_buffer_line(const float &x, const float &y, const float &z, const floa
|
495
|
495
|
SERIAL_ECHO_START;
|
496
|
496
|
SERIAL_ECHOLNPGM(MSG_ERR_COLD_EXTRUDE_STOP);
|
497
|
497
|
}
|
|
498
|
+ #ifdef PREVENT_LENGTHY_EXTRUDE
|
498
|
499
|
if(labs(target[E_AXIS]-position[E_AXIS])>axis_steps_per_unit[E_AXIS]*EXTRUDE_MAXLENGTH)
|
499
|
500
|
{
|
500
|
501
|
position[E_AXIS]=target[E_AXIS]; //behave as if the move really took place, but ignore E part
|
501
|
502
|
SERIAL_ECHO_START;
|
502
|
503
|
SERIAL_ECHOLNPGM(MSG_ERR_LONG_EXTRUDE_STOP);
|
503
|
504
|
}
|
|
505
|
+ #endif
|
504
|
506
|
#endif
|
505
|
507
|
|
506
|
508
|
// Prepare to set up new block
|