dda.c: fix a typo in update_current_position().

This commit is contained in:
Markus Hitter 2011-11-12 12:47:41 +01:00
parent 4e5f51f01e
commit 64b1a23cd3
1 changed files with 1 additions and 1 deletions

2
dda.c
View File

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