Remove a bunch of duplicate x_enable() etc..
This commit is contained in:
parent
b45969e57a
commit
3b4953a631
|
|
@ -377,11 +377,6 @@ void process_gcode_command() {
|
|||
|
||||
timer_stop();
|
||||
queue_flush();
|
||||
stepper_disable();
|
||||
x_disable();
|
||||
y_disable();
|
||||
z_disable();
|
||||
e_disable();
|
||||
power_off();
|
||||
cli();
|
||||
for (;;)
|
||||
|
|
@ -693,11 +688,6 @@ void process_gcode_command() {
|
|||
// wait for all moves to complete
|
||||
queue_wait();
|
||||
#endif
|
||||
stepper_disable();
|
||||
x_disable();
|
||||
y_disable();
|
||||
z_disable();
|
||||
e_disable();
|
||||
power_off();
|
||||
break;
|
||||
|
||||
|
|
|
|||
12
home.c
12
home.c
|
|
@ -40,8 +40,6 @@ void home_x_negative() {
|
|||
#if defined X_MIN_PIN
|
||||
uint8_t debounce_count = 0;
|
||||
|
||||
// home X
|
||||
x_enable();
|
||||
// hit home hard
|
||||
x_direction(0);
|
||||
while (debounce_count < 8) {
|
||||
|
|
@ -89,8 +87,6 @@ void home_x_positive() {
|
|||
#if defined X_MAX_PIN
|
||||
uint8_t debounce_count = 0;
|
||||
|
||||
// home X
|
||||
x_enable();
|
||||
// hit home hard
|
||||
x_direction(1);
|
||||
while (debounce_count < 8) {
|
||||
|
|
@ -138,8 +134,6 @@ void home_y_negative() {
|
|||
#if defined Y_MIN_PIN
|
||||
uint8_t debounce_count = 0;
|
||||
|
||||
// home Y
|
||||
y_enable();
|
||||
// hit home hard
|
||||
y_direction(0);
|
||||
while (debounce_count < 8) {
|
||||
|
|
@ -187,8 +181,6 @@ void home_y_positive() {
|
|||
#if defined Y_MAX_PIN
|
||||
uint8_t debounce_count = 0;
|
||||
|
||||
// home Y
|
||||
y_enable();
|
||||
// hit home hard
|
||||
y_direction(1);
|
||||
while (debounce_count < 8) {
|
||||
|
|
@ -236,8 +228,6 @@ void home_z_negative() {
|
|||
#if defined Z_MIN_PIN
|
||||
uint8_t debounce_count = 0;
|
||||
|
||||
// home Z
|
||||
z_enable();
|
||||
// hit home hard
|
||||
z_direction(0);
|
||||
while (debounce_count < 8) {
|
||||
|
|
@ -286,8 +276,6 @@ void home_z_positive() {
|
|||
#if defined Z_MAX_PIN
|
||||
uint8_t debounce_count = 0;
|
||||
|
||||
// home Z
|
||||
z_enable();
|
||||
// hit home hard
|
||||
z_direction(1);
|
||||
while (debounce_count < 8) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue