Commit fecbb554 authored by MagoKimbra's avatar MagoKimbra

Fix IS_SD_PRINTING

parent 6d57efa8
......@@ -980,6 +980,7 @@
****************************************************************************************/
//#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 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
// Some RAMPS and other boards don't detect when an SD card is inserted. You can work
......
......@@ -45,9 +45,7 @@
#endif
#include "stepper.h"
#include "temperature.h"
#if ENABLED(SDSUPPORT)
#include "cardreader.h"
#endif
#include "cardreader.h"
#include "configuration_store.h"
#if ENABLED(USE_WATCHDOG)
......
......@@ -196,7 +196,9 @@ void CardReader::initsd() {
cardOK = false;
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
#else
#define SPI_SPEED SPI_FULL_SPEED
......
......@@ -4,11 +4,7 @@
#if ENABLED(ULTRA_LCD)
#include "Marlin_main.h"
#if ENABLED(SDSUPPORT)
#include "cardreader.h"
#endif
#include "cardreader.h"
#include "temperature.h"
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
......@@ -2382,11 +2378,7 @@ char *ftostr52(const float &x) {
#elif ENABLED(NEXTION)
#include "Marlin_main.h"
#if ENABLED(SDSUPPORT)
#include "cardreader.h"
#endif
#include "cardreader.h"
#include "temperature.h"
#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