Fix SD pins for SKR Pro and GTR (#19047)

This commit is contained in:
Jason Smith
2020-08-25 22:43:33 -07:00
committed by GitHub
parent bd9dc73d3d
commit 646d90f3da
5 changed files with 49 additions and 40 deletions

View File

@ -137,6 +137,10 @@ CardReader::CardReader() {
// Disable autostart until card is initialized
autostart_index = -1;
#if ENABLED(SDSUPPORT) && PIN_EXISTS(SD_DETECT)
SET_INPUT_PULLUP(SD_DETECT_PIN);
#endif
#if PIN_EXISTS(SDPOWER)
OUT_WRITE(SDPOWER_PIN, HIGH); // Power the SD reader
#endif