pinio.c: remove duplicate #ifdef wrapping.
In case of no enable pins, these functions resolve to nothing anyways, see pinio.h.
This commit is contained in:
parent
d93e6e5d2c
commit
c182cc8929
16
pinio.c
16
pinio.c
|
|
@ -1,18 +1,10 @@
|
||||||
#include "pinio.h"
|
#include "pinio.h"
|
||||||
|
|
||||||
void power_off() {
|
void power_off() {
|
||||||
#ifdef X_ENABLE_PIN
|
|
||||||
x_disable();
|
x_disable();
|
||||||
#endif
|
y_disable();
|
||||||
#ifdef Y_ENABLE_PIN
|
z_disable();
|
||||||
y_disable();
|
|
||||||
#endif
|
|
||||||
#ifdef Z_ENABLE_PIN
|
|
||||||
z_disable();
|
|
||||||
#endif
|
|
||||||
#ifdef E_ENABLE_PIN
|
|
||||||
e_disable();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef STEPPER_ENABLE_PIN
|
#ifdef STEPPER_ENABLE_PIN
|
||||||
WRITE(STEPPER_ENABLE_PIN, STEPPER_ENABLE_INVERT ^ 1);
|
WRITE(STEPPER_ENABLE_PIN, STEPPER_ENABLE_INVERT ^ 1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue