dda.c: fix debug statement position.

It's always a good idea to read a structure _after_ filling it :-)
This commit is contained in:
Markus Hitter 2014-12-26 21:13:42 +01:00
parent 55c0be5f41
commit cca2994dd8
1 changed files with 3 additions and 3 deletions

6
dda.c
View File

@ -172,14 +172,14 @@ void dda_create(DDA *dda, TARGET *target) {
if (dda->waitfor_temp)
return;
// We end at the passed target.
memcpy(&(dda->endpoint), target, sizeof(TARGET));
if (DEBUG_DDA && (debug_flags & DEBUG_DDA))
sersendf_P(PSTR("\nCreate: X %lq Y %lq Z %lq F %lu\n"),
dda->endpoint.axis[X], dda->endpoint.axis[Y],
dda->endpoint.axis[Z], dda->endpoint.F);
// we end at the passed target
memcpy(&(dda->endpoint), target, sizeof(TARGET));
#ifdef LOOKAHEAD
// Set the start and stop speeds to zero for now = full stops between
// moves. Also fallback if lookahead calculations fail to finish in time.