Overridable Options - Part 5
Apply `ENABLED` / `DISABLED` macros to files needing only a small number of changes.
This commit is contained in:
committed by
Richard Wackerbarth
parent
5e834352a9
commit
58cfcd4239
@ -1,7 +1,7 @@
|
||||
#ifndef CARDREADER_H
|
||||
#define CARDREADER_H
|
||||
|
||||
#ifdef SDSUPPORT
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
#define MAX_DIR_DEPTH 10 // Maximum folder depth
|
||||
|
||||
@ -28,7 +28,7 @@ public:
|
||||
void getStatus();
|
||||
void printingHasFinished();
|
||||
|
||||
#ifdef LONG_FILENAME_HOST_SUPPORT
|
||||
#if ENABLED(LONG_FILENAME_HOST_SUPPORT)
|
||||
void printLongPath(char *path);
|
||||
#endif
|
||||
|
||||
@ -82,7 +82,7 @@ extern CardReader card;
|
||||
#define IS_SD_PRINTING (card.sdprinting)
|
||||
|
||||
#if (SDCARDDETECT > -1)
|
||||
#ifdef SDCARDDETECTINVERTED
|
||||
#if ENABLED(SDCARDDETECTINVERTED)
|
||||
#define IS_SD_INSERTED (READ(SDCARDDETECT) != 0)
|
||||
#else
|
||||
#define IS_SD_INSERTED (READ(SDCARDDETECT) == 0)
|
||||
|
Reference in New Issue
Block a user