Skip to content

Commit 2ff65fa

Browse files
authored
Update SD.cpp
1 parent cfb6706 commit 2ff65fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/SD/src/SD.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ bool SDFS::begin(uint8_t ssPin, SPIClass &spi, uint32_t frequency, const char *m
2727
return true;
2828
}
2929

30-
spi.begin();
30+
if (!spi.begin()) {
31+
return false;
32+
}
3133

3234
_pdrv = sdcard_init(ssPin, &spi, frequency);
3335
if (_pdrv == 0xFF) {

0 commit comments

Comments
 (0)