Overridable Options - Part 5

Apply `ENABLED` / `DISABLED` macros to files needing only a small
number of changes.
This commit is contained in:
Scott Lahteine
2015-07-30 22:21:18 -07:00
committed by Richard Wackerbarth
parent 5e834352a9
commit 58cfcd4239
33 changed files with 63 additions and 62 deletions

View File

@ -5,7 +5,7 @@
#include "temperature.h"
#include "language.h"
#ifdef SDSUPPORT
#if ENABLED(SDSUPPORT)
CardReader::CardReader() {
filesize = 0;
@ -128,7 +128,7 @@ void CardReader::ls() {
lsDive("", root);
}
#ifdef LONG_FILENAME_HOST_SUPPORT
#if ENABLED(LONG_FILENAME_HOST_SUPPORT)
/**
* Get a long pretty path based on a DOS 8.3 path
@ -195,7 +195,7 @@ void CardReader::initsd() {
cardOK = false;
if (root.isOpen()) root.close();
#ifdef SDSLOW
#if ENABLED(SDSLOW)
#define SPI_SPEED SPI_HALF_SPEED
#else
#define SPI_SPEED SPI_FULL_SPEED