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
10
pinio.c
10
pinio.c
|
|
@ -1,18 +1,10 @@
|
|||
#include "pinio.h"
|
||||
|
||||
void power_off() {
|
||||
#ifdef X_ENABLE_PIN
|
||||
|
||||
x_disable();
|
||||
#endif
|
||||
#ifdef Y_ENABLE_PIN
|
||||
y_disable();
|
||||
#endif
|
||||
#ifdef Z_ENABLE_PIN
|
||||
z_disable();
|
||||
#endif
|
||||
#ifdef E_ENABLE_PIN
|
||||
e_disable();
|
||||
#endif
|
||||
|
||||
#ifdef STEPPER_ENABLE_PIN
|
||||
WRITE(STEPPER_ENABLE_PIN, STEPPER_ENABLE_INVERT ^ 1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue