From 39cababb0727da810db485012452f567fa64c11b Mon Sep 17 00:00:00 2001 From: Wurstnase Date: Tue, 8 Nov 2016 18:28:00 +0100 Subject: [PATCH] dda.c: don't apply feedrate multiplier when searching endstops. With M220 we can increase the step rate while printing. But when using this feature it could cause unexpected behaviour while homing. --- dda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dda.c b/dda.c index d3d5e56..11fe3a7 100644 --- a/dda.c +++ b/dda.c @@ -180,7 +180,7 @@ void dda_create(DDA *dda, const TARGET *target) { dda->endpoint.axis[Z], dda->endpoint.F); // Apply feedrate multiplier. - if (dda->endpoint.f_multiplier != 256) { + if (dda->endpoint.f_multiplier != 256 && ! dda->endstop_check) { dda->endpoint.F *= dda->endpoint.f_multiplier; dda->endpoint.F += 128; dda->endpoint.F /= 256;