From 1620738701abbbc349e4f48fb2a0e415bda0bcd1 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 2 Jul 2019 09:38:29 -0500 Subject: [PATCH] Home dir use < or > --- Marlin/src/lcd/ultralcd.cpp | 2 +- Marlin/src/pins/pins_ARCHIM2.h | 4 ++-- Marlin/src/pins/pins_EINSY_RETRO.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Marlin/src/lcd/ultralcd.cpp b/Marlin/src/lcd/ultralcd.cpp index 37e63cdae8..9dc9ca1cdf 100644 --- a/Marlin/src/lcd/ultralcd.cpp +++ b/Marlin/src/lcd/ultralcd.cpp @@ -430,7 +430,7 @@ bool MarlinUI::get_blink() { if (RRK(EN_KEYPAD_MIDDLE)) goto_screen(menu_move); - #if DISABLED(DELTA) && Z_HOME_DIR == -1 + #if DISABLED(DELTA) && Z_HOME_DIR < 0 if (RRK(EN_KEYPAD_F2)) _reprapworld_keypad_move(Z_AXIS, 1); #endif diff --git a/Marlin/src/pins/pins_ARCHIM2.h b/Marlin/src/pins/pins_ARCHIM2.h index df4e7d132d..002b70e079 100644 --- a/Marlin/src/pins/pins_ARCHIM2.h +++ b/Marlin/src/pins/pins_ARCHIM2.h @@ -70,7 +70,7 @@ #define E0_DIAG_PIN 78 // PB23 #define E1_DIAG_PIN 25 // PD0 - #if X_HOME_DIR == -1 + #if X_HOME_DIR < 0 #define X_MIN_PIN X_DIAG_PIN #define X_MAX_PIN 32 #else @@ -78,7 +78,7 @@ #define X_MAX_PIN X_DIAG_PIN #endif - #if Y_HOME_DIR == -1 + #if Y_HOME_DIR < 0 #define Y_MIN_PIN Y_DIAG_PIN #define Y_MAX_PIN 15 #else diff --git a/Marlin/src/pins/pins_EINSY_RETRO.h b/Marlin/src/pins/pins_EINSY_RETRO.h index 9115ae0376..42b330c9d7 100644 --- a/Marlin/src/pins/pins_EINSY_RETRO.h +++ b/Marlin/src/pins/pins_EINSY_RETRO.h @@ -62,7 +62,7 @@ #else - #if X_HOME_DIR == -1 + #if X_HOME_DIR < 0 #define X_MIN_PIN X_DIAG_PIN #define X_MAX_PIN 81 #else @@ -70,7 +70,7 @@ #define X_MAX_PIN X_DIAG_PIN #endif - #if Y_HOME_DIR == -1 + #if Y_HOME_DIR < 0 #define Y_MIN_PIN Y_DIAG_PIN #define Y_MAX_PIN 57 #else