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:
Markus Hitter 2011-03-01 21:34:38 +01:00
parent d93e6e5d2c
commit c182cc8929
1 changed files with 4 additions and 12 deletions

16
pinio.c
View File

@ -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
x_disable();
y_disable();
z_disable();
#ifdef STEPPER_ENABLE_PIN
WRITE(STEPPER_ENABLE_PIN, STEPPER_ENABLE_INVERT ^ 1);