From 12516be978a49bc9d4d8143b8feab179dd125014 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Wed, 2 Mar 2011 00:55:49 +0100 Subject: [PATCH] dda.c: get rid of duplicate power_on() & friends. --- dda.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dda.c b/dda.c index 8625246..208977d 100644 --- a/dda.c +++ b/dda.c @@ -183,8 +183,7 @@ void dda_create(DDA *dda, TARGET *target) { power_on(); x_enable(); y_enable(); - if (dda->z_delta) - z_enable(); + // Z is enabled in dda_start() e_enable(); // since it's unusual to combine X, Y and Z changes in a single move on reprap, check if we can use simpler approximations before trying the full 3d approximation. @@ -359,14 +358,10 @@ void dda_start(DDA *dda) { #endif } else {*/ - // ensure steppers are ready to go + // get ready to go steptimeout = 0; - power_on(); - x_enable(); - y_enable(); if (dda->z_delta) z_enable(); - e_enable(); // set direction outputs x_direction(dda->x_direction);