From 3ee3ee06a16ec2229d400e5aead890a25e4741c0 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Fri, 4 Mar 2011 22:51:14 +0100 Subject: [PATCH] pinio.h: cosmetics. --- pinio.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/pinio.h b/pinio.h index ae0d1a9..0a85b61 100644 --- a/pinio.h +++ b/pinio.h @@ -102,13 +102,13 @@ Z Stepper */ #if defined Z_STEP_PIN && defined Z_DIR_PIN -#define _z_step(st) WRITE(Z_STEP_PIN, st) -#define z_step() _z_step(1); -#ifndef Z_INVERT_DIR - #define z_direction(dir) WRITE(Z_DIR_PIN, dir) -#else - #define z_direction(dir) WRITE(Z_DIR_PIN, dir^1) -#endif + #define _z_step(st) WRITE(Z_STEP_PIN, st) + #define z_step() _z_step(1); + #ifndef Z_INVERT_DIR + #define z_direction(dir) WRITE(Z_DIR_PIN, dir) + #else + #define z_direction(dir) WRITE(Z_DIR_PIN, dir^1) + #endif #else #define _z_step(x) do { } while (0) #define z_step() do { } while (0) @@ -138,17 +138,17 @@ Extruder */ #if defined E_STEP_PIN && defined E_DIR_PIN - #define _e_step(st) WRITE(E_STEP_PIN, st) - #define e_step() _e_step(1); + #define _e_step(st) WRITE(E_STEP_PIN, st) + #define e_step() _e_step(1); #ifndef E_INVERT_DIR - #define e_direction(dir) WRITE(E_DIR_PIN, dir) + #define e_direction(dir) WRITE(E_DIR_PIN, dir) #else - #define e_direction(dir) WRITE(E_DIR_PIN, dir^1) + #define e_direction(dir) WRITE(E_DIR_PIN, dir^1) #endif #else - #define _e_step(st) do { } while (0) - #define e_step() do { } while (0) - #define e_direction(dir) do { } while (0) + #define _e_step(st) do { } while (0) + #define e_step() do { } while (0) + #define e_direction(dir) do { } while (0) #endif /*