@ -384,6 +384,8 @@
#error "POWER_SUPPLY is now obsolete. Please remove it from Configuration.h."
#elif defined(MKS_ROBIN_TFT)
#error "MKS_ROBIN_TFT is now FSMC_GRAPHICAL_TFT. Please update your configuration."
#elif defined(SDPOWER)
#error "SDPOWER is now SDPOWER_PIN. Please update your configuration and/or pins."
#endif
#define BOARD_MKS_13 -1109
@ -125,7 +125,6 @@
#define BEEPER_PIN 44
#if ENABLED(SDSUPPORT)
#define SDPOWER -1
#define SDSS 53
#define SD_DETECT_PIN 49
@ -89,7 +89,6 @@
//
// Misc. Functions
#define LED_PIN 13
#define PS_ON_PIN 12
@ -83,7 +83,6 @@
// SD Card
#define SD_DETECT_PIN -1
@ -774,8 +774,8 @@
#ifndef SD_DETECT_PIN
#ifndef SDPOWER
#ifndef SDPOWER_PIN
#define SDPOWER_PIN -1
#ifndef SDSS
#define SDSS -1
@ -707,8 +707,8 @@
// #if defined(SDA) && SDA >= 0
// REPORT_NAME_DIGITAL(__LINE__, SDA)
// #endif
#if defined(SDPOWER) && SDPOWER >= 0
REPORT_NAME_DIGITAL(__LINE__, SDPOWER)
#if PIN_EXISTS(SDPOWER)
REPORT_NAME_DIGITAL(__LINE__, SDPOWER_PIN)
#if defined(SDSS) && SDSS >= 0
REPORT_NAME_DIGITAL(__LINE__, SDSS)
@ -42,8 +42,7 @@
#undef SDPOWER
#define SDPOWER 1
#define SDPOWER_PIN 1
@ -103,7 +103,7 @@
#define SDPOWER 48
#define SDPOWER_PIN 48
#define CASE_LIGHT_PIN 45 // Hardware PWM
@ -215,7 +215,6 @@
@ -86,7 +86,6 @@
#define SDSS PA15
#define LED_PIN PB2
@ -84,7 +84,6 @@
#define LED_PIN -1
#define CASE_LIGHT_PIN 8
@ -133,9 +133,8 @@ CardReader::CardReader() {
// Disable autostart until card is initialized
autostart_index = -1;
//power to SD reader
#if SDPOWER > -1
OUT_WRITE(SDPOWER, HIGH);
OUT_WRITE(SDPOWER_PIN, HIGH); // Power the SD reader
}