Commit fecbb554 authored by MagoKimbra's avatar MagoKimbra

Fix IS_SD_PRINTING

parent 6d57efa8
...@@ -980,6 +980,7 @@ ...@@ -980,6 +980,7 @@
****************************************************************************************/ ****************************************************************************************/
//#define SDSUPPORT // Enable SD Card Support in Hardware Console //#define SDSUPPORT // Enable SD Card Support in Hardware Console
//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error) //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
//#define SDEXTRASLOW // Use even slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
//#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication //#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication
// Some RAMPS and other boards don't detect when an SD card is inserted. You can work // Some RAMPS and other boards don't detect when an SD card is inserted. You can work
......
...@@ -45,9 +45,7 @@ ...@@ -45,9 +45,7 @@
#endif #endif
#include "stepper.h" #include "stepper.h"
#include "temperature.h" #include "temperature.h"
#if ENABLED(SDSUPPORT) #include "cardreader.h"
#include "cardreader.h"
#endif
#include "configuration_store.h" #include "configuration_store.h"
#if ENABLED(USE_WATCHDOG) #if ENABLED(USE_WATCHDOG)
......
...@@ -196,7 +196,9 @@ void CardReader::initsd() { ...@@ -196,7 +196,9 @@ void CardReader::initsd() {
cardOK = false; cardOK = false;
if (root.isOpen()) root.close(); if (root.isOpen()) root.close();
#if ENABLED(SDSLOW) #if ENABLED(SDEXTRASLOW)
#define SPI_SPEED SPI_QUARTER_SPEED
#elif ENABLED(SDSLOW)
#define SPI_SPEED SPI_HALF_SPEED #define SPI_SPEED SPI_HALF_SPEED
#else #else
#define SPI_SPEED SPI_FULL_SPEED #define SPI_SPEED SPI_FULL_SPEED
......
...@@ -4,11 +4,7 @@ ...@@ -4,11 +4,7 @@
#if ENABLED(ULTRA_LCD) #if ENABLED(ULTRA_LCD)
#include "Marlin_main.h" #include "Marlin_main.h"
#include "cardreader.h"
#if ENABLED(SDSUPPORT)
#include "cardreader.h"
#endif
#include "temperature.h" #include "temperature.h"
#if ENABLED(AUTO_BED_LEVELING_FEATURE) #if ENABLED(AUTO_BED_LEVELING_FEATURE)
...@@ -2382,11 +2378,7 @@ char *ftostr52(const float &x) { ...@@ -2382,11 +2378,7 @@ char *ftostr52(const float &x) {
#elif ENABLED(NEXTION) #elif ENABLED(NEXTION)
#include "Marlin_main.h" #include "Marlin_main.h"
#include "cardreader.h"
#if ENABLED(SDSUPPORT)
#include "cardreader.h"
#endif
#include "temperature.h" #include "temperature.h"
#if ENABLED(AUTO_BED_LEVELING_FEATURE) #if ENABLED(AUTO_BED_LEVELING_FEATURE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment