#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
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 ============================
//===========================================================================
#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