From 64b1a23cd3f3ba30a1ba19cc899405285c8d6314 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sat, 12 Nov 2011 12:47:41 +0100 Subject: [PATCH] dda.c: fix a typo in update_current_position(). --- dda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dda.c b/dda.c index 292b439..b045727 100644 --- a/dda.c +++ b/dda.c @@ -762,7 +762,7 @@ void update_current_position() { #ifndef E_ABSOLUTE current_position.E = move_state.e_steps * 1000 / ((STEPS_PER_M_E + 500) / 1000); #else - if (dda->z_direction) + if (dda->e_direction) current_position.E = dda->endpoint.E - move_state.e_steps * 1000 / ((STEPS_PER_M_E + 500) / 1000); else