chiark / gitweb /
Small fixes after merge
authorErik van der Zalm <erik@vdzalm.eu>
Tue, 21 Feb 2012 19:36:43 +0000 (20:36 +0100)
committerErik van der Zalm <erik@vdzalm.eu>
Tue, 21 Feb 2012 19:36:43 +0000 (20:36 +0100)
Marlin/Configuration.h
Marlin/Configuration_adv.h
Marlin/ultralcd.h

index 2b561923e80a83e1a5f0fc640e0699e4d2561b56..545b82b7a89abb07c9bf43c7e2c174daef643e4c 100644 (file)
@@ -183,13 +183,6 @@ const bool Z_ENDSTOPS_INVERTING = false; // set to true to invert the logic of t
 #define SDSUPPORT // Enable SD Card Support in Hardware Console
 
 //#define ULTIPANEL
-// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
-// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT 
-// in the pins.h file.  When using a push button pulling the pin to ground this will need inverted.  This setting should
-// be commented out otherwise
-#define SDCARDDETECTINVERTED 
-
-#define ULTIPANEL
 #ifdef ULTIPANEL
   #define NEWPANEL  //enable this if you have a click-encoder panel
   #define SDSUPPORT
index a19747d1453e915b0617a17bc658ba0e50f3a430..d73962cff2c65798c9f771f90ec23614f38d3664 100644 (file)
 
 const int dropsegments=5; //everything with less than this number of steps will be ignored as move and joined with the next movement
 
+// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
+// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT 
+// in the pins.h file.  When using a push button pulling the pin to ground this will need inverted.  This setting should
+// be commented out otherwise
+//#define SDCARDDETECTINVERTED 
+
 //===========================================================================
 //=============================Buffers           ============================
 //===========================================================================
index f7bf9c09d787a974d1b1dd9c0b1a7414532b210a..6cfdc74ad1148c0f49b4738c4fd8fc319dbcfa94 100644 (file)
     #define CLICKED (buttons&EN_C)
     #define BLOCK {blocking=millis()+blocktime;}
     #if (SDCARDDETECT > -1)
-    {
-
-       #ifdef SDCARDDETECTINVERTED 
-               #define CARDINSERTED (READ(SDCARDDETECT)!=0)
-
-       #else
-               #define CARDINSERTED (READ(SDCARDDETECT)==0)
-    }
-    #endif
-
-       #endif  //SDCARDTETECTINVERTED
+      #ifdef SDCARDDETECTINVERTED 
+        #define CARDINSERTED (READ(SDCARDDETECT)!=0)
+      #else
+        #define CARDINSERTED (READ(SDCARDDETECT)==0)
+      #endif
+    #endif  //SDCARDTETECTINVERTED
 
   #else