From c69b43b876c5b94ca69949a73b5ede1d612f8a44 Mon Sep 17 00:00:00 2001 From: Nico Tonnhofer Date: Sat, 2 Dec 2017 04:39:24 +0100 Subject: [PATCH] dda.c: reset startpoint.axis[E] when e is in relative mode. See also M83. --- dda.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dda.c b/dda.c index a8e82a9..1056abb 100644 --- a/dda.c +++ b/dda.c @@ -461,6 +461,8 @@ void dda_create(DDA *dda, const TARGET *target) { // next dda starts where we finish memcpy(&startpoint, &dda->endpoint, sizeof(TARGET)); + if (startpoint.e_relative) + startpoint.axis[E] = 0; #ifdef LOOKAHEAD prev_dda = dda; #endif