From b94a0e15013ce8401a20ab87ff76692748dd96fb Mon Sep 17 00:00:00 2001 From: Ed Boston Date: Fri, 29 May 2015 15:02:20 -0700 Subject: [PATCH] Added ELB_FULL_GRAPHIC_CONTROLLER_SDCARDDETECTINVERTED The new define allows the sd card detect to be inverted or not from Configuration.h --- Marlin/Conditionals.h | 4 +++- Marlin/Configuration.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Marlin/Conditionals.h b/Marlin/Conditionals.h index 3946d224e..7ac6b0706 100644 --- a/Marlin/Conditionals.h +++ b/Marlin/Conditionals.h @@ -33,7 +33,9 @@ #define DEFAULT_LCD_CONTRAST 40 #elif defined(ELB_FULL_GRAPHIC_CONTROLLER) #define DEFAULT_LCD_CONTRAST 110 - #define SDCARDDETECTINVERTED + #ifdef ELB_FULL_GRAPHIC_CONTROLLER_SDCARDDETECTINVERTED + #define SDCARDDETECTINVERTED + #endif #define SDSLOW #define U8GLIB_LM6059_AF #endif diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index 430f134bb..337a5bb5d 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -670,6 +670,7 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic // // ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib //#define ELB_FULL_GRAPHIC_CONTROLLER +//#define ELB_FULL_GRAPHIC_CONTROLLER_SDCARDDETECTINVERTED // The RepRapDiscount Smart Controller (white PCB) // http://reprap.org/wiki/RepRapDiscount_Smart_Controller