dda.c: reset startpoint.axis[E]

when e is in relative mode.
See also M83.
This commit is contained in:
Nico Tonnhofer 2017-12-02 04:39:24 +01:00
parent 4944698de6
commit c69b43b876
1 changed files with 2 additions and 0 deletions

2
dda.c
View File

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