dda.c: fix debug statement position.
It's always a good idea to read a structure _after_ filling it :-)
This commit is contained in:
parent
55c0be5f41
commit
cca2994dd8
6
dda.c
6
dda.c
|
|
@ -172,14 +172,14 @@ void dda_create(DDA *dda, TARGET *target) {
|
||||||
if (dda->waitfor_temp)
|
if (dda->waitfor_temp)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// We end at the passed target.
|
||||||
|
memcpy(&(dda->endpoint), target, sizeof(TARGET));
|
||||||
|
|
||||||
if (DEBUG_DDA && (debug_flags & DEBUG_DDA))
|
if (DEBUG_DDA && (debug_flags & DEBUG_DDA))
|
||||||
sersendf_P(PSTR("\nCreate: X %lq Y %lq Z %lq F %lu\n"),
|
sersendf_P(PSTR("\nCreate: X %lq Y %lq Z %lq F %lu\n"),
|
||||||
dda->endpoint.axis[X], dda->endpoint.axis[Y],
|
dda->endpoint.axis[X], dda->endpoint.axis[Y],
|
||||||
dda->endpoint.axis[Z], dda->endpoint.F);
|
dda->endpoint.axis[Z], dda->endpoint.F);
|
||||||
|
|
||||||
// we end at the passed target
|
|
||||||
memcpy(&(dda->endpoint), target, sizeof(TARGET));
|
|
||||||
|
|
||||||
#ifdef LOOKAHEAD
|
#ifdef LOOKAHEAD
|
||||||
// Set the start and stop speeds to zero for now = full stops between
|
// Set the start and stop speeds to zero for now = full stops between
|
||||||
// moves. Also fallback if lookahead calculations fail to finish in time.
|
// moves. Also fallback if lookahead calculations fail to finish in time.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue