dda.c: get rid of duplicate power_on() & friends.
This commit is contained in:
parent
e688e8b788
commit
12516be978
9
dda.c
9
dda.c
|
|
@ -183,8 +183,7 @@ void dda_create(DDA *dda, TARGET *target) {
|
||||||
power_on();
|
power_on();
|
||||||
x_enable();
|
x_enable();
|
||||||
y_enable();
|
y_enable();
|
||||||
if (dda->z_delta)
|
// Z is enabled in dda_start()
|
||||||
z_enable();
|
|
||||||
e_enable();
|
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.
|
// 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
|
#endif
|
||||||
}
|
}
|
||||||
else {*/
|
else {*/
|
||||||
// ensure steppers are ready to go
|
// get ready to go
|
||||||
steptimeout = 0;
|
steptimeout = 0;
|
||||||
power_on();
|
|
||||||
x_enable();
|
|
||||||
y_enable();
|
|
||||||
if (dda->z_delta)
|
if (dda->z_delta)
|
||||||
z_enable();
|
z_enable();
|
||||||
e_enable();
|
|
||||||
|
|
||||||
// set direction outputs
|
// set direction outputs
|
||||||
x_direction(dda->x_direction);
|
x_direction(dda->x_direction);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue