Browse Source

Use SdFat's shared SPI mode

main
PaulStoffregen 4 years ago
parent
commit
52c44d76ab
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/SD.h

+ 2
- 1
src/SD.h View File

@@ -114,7 +114,8 @@ public:
//return sdfs.begin(SdioConfig(DMA_SDIO));
}
#endif
return sdfs.begin(csPin, SD_SCK_MHZ(24));
return sdfs.begin(SdSpiConfig(csPin, SHARED_SPI, SD_SCK_MHZ(24)));
//return sdfs.begin(csPin, SD_SCK_MHZ(24));
}
File open(const char *filepath, uint8_t mode = FILE_READ) {
oflag_t flags = O_READ;

Loading…
Cancel
Save