Browse Source

SDCARDDETECTINVERTED problems

Fixed an error where SDCARDDETECTINVERTED was being defined/undefined
improperly
Ed Boston 9 years ago
parent
commit
bc205c76a3
2 changed files with 4 additions and 2 deletions
  1. 1
    1
      Marlin/Conditionals.h
  2. 3
    1
      Marlin/Configuration_adv.h

+ 1
- 1
Marlin/Conditionals.h View File

@@ -322,7 +322,7 @@
322 322
     #define STEPS_PER_CUBIC_MM_E (axis_steps_per_unit[E_AXIS] / EXTRUSION_AREA)
323 323
   #endif
324 324
 
325
-  #ifdef ULTIPANEL
325
+  #if defined(ULTIPANEL) && !defined(ELB_FULL_GRAPHIC_CONTROLLER)
326 326
     #undef SDCARDDETECTINVERTED
327 327
   #endif
328 328
 

+ 3
- 1
Marlin/Configuration_adv.h View File

@@ -289,7 +289,9 @@
289 289
   // You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
290 290
   // in the pins.h file.  When using a push button pulling the pin to ground this will need inverted.  This setting should
291 291
   // be commented out otherwise
292
-  #define SDCARDDETECTINVERTED
292
+  #ifndef ELB_FULL_GRAPHIC_CONTROLLER
293
+    #define SDCARDDETECTINVERTED
294
+  #endif
293 295
 
294 296
   #define SD_FINISHED_STEPPERRELEASE true  //if sd support and the file is finished: disable steppers?
295 297
   #define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the z enabled so your bed stays in place.

Loading…
Cancel
Save