allow G92 to work again after 0389289

This commit is contained in:
Michael Moon 2011-04-26 18:19:00 +10:00
parent 03892894ed
commit 74e03b7df1
1 changed files with 3 additions and 0 deletions

3
dda.c
View File

@ -577,6 +577,9 @@ void dda_step(DDA *dda) {
void update_position() { void update_position() {
DDA *dda = &movebuffer[mb_tail]; DDA *dda = &movebuffer[mb_tail];
if (dda->live == 0)
return;
if (dda->x_direction) if (dda->x_direction)
current_position.X = dda->endpoint.X - dda->x_steps; current_position.X = dda->endpoint.X - dda->x_steps;
else else