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.
This commit is contained in:
Wurstnase 2016-11-08 18:28:00 +01:00 committed by Markus Hitter
parent 9d42fa4ac1
commit 39cababb07
1 changed files with 1 additions and 1 deletions

2
dda.c
View File

@ -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;