From a97c65b940166e82ba9ec08a45eed3b337705061 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Wed, 23 Oct 2013 16:15:25 +0200 Subject: [PATCH] dda.c: update last_dda also when idle. --- dda.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dda.c b/dda.c index 103bbca..a0cf1f6 100644 --- a/dda.c +++ b/dda.c @@ -728,6 +728,7 @@ void dda_clock() { move_state.debounce_count_zmin = move_state.debounce_count_xmax = move_state.debounce_count_ymax = move_state.debounce_count_zmax = 0; endstop_stop = 0; + last_dda = dda; } if (dda == NULL) @@ -815,8 +816,6 @@ void dda_clock() { } } /* if (endstop_stop == 0) */ - last_dda = dda; - cli(); // Compensate sei() above. busy = 0; }