From 9818d975878c9db14e3c0338fdab11fbeafb9513 Mon Sep 17 00:00:00 2001 From: Sebastianv650 Date: Sat, 15 Oct 2016 13:46:47 +0200 Subject: [PATCH] Fix Z-hops during retract/prime lead to blobs We don't want to have retract/prime movements done with LIN_ADVANCE, that's also true with simultaneously executed Z-hops. --- Marlin/planner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/planner.cpp b/Marlin/planner.cpp index ffacf76db..cfc23dfd3 100644 --- a/Marlin/planner.cpp +++ b/Marlin/planner.cpp @@ -1206,7 +1206,7 @@ void Planner::_buffer_line(const float &a, const float &b, const float &c, const // This leads to an enormous number of advance steps due to a huge e_acceleration. // The math is correct, but you don't want a retract move done with advance! // So this situation is filtered out here. - if (!block->steps[E_AXIS] || (!block->steps[X_AXIS] && !block->steps[Y_AXIS] && !block->steps[Z_AXIS]) || stepper.get_advance_k() == 0 || (uint32_t) block->steps[E_AXIS] == block->step_event_count) { + if (!block->steps[E_AXIS] || (!block->steps[X_AXIS] && !block->steps[Y_AXIS]) || stepper.get_advance_k() == 0 || (uint32_t) block->steps[E_AXIS] == block->step_event_count) { block->use_advance_lead = false; } else {