This website works better with JavaScript.
Home
Explore
Help
Sign In
visus
/
teensy-sd
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Add SD.begin() to be called more than once
main
PaulStoffregen
4 years ago
parent
f7c6002632
commit
a4c9800ac3
1 changed files
with
3 additions
and
0 deletions
Split View
Show Diff Stats
+3
-0
SD.cpp
+ 3
- 0
SD.cpp
View File
@@ -341,6 +341,9 @@ boolean SDClass::begin(uint8_t csPin) {
Return true if initialization succeeds, false otherwise.
*/
if (root.isOpen()) root.close();
return card.init(SPI_HALF_SPEED, csPin) &&
volume.init(card) &&
root.openRoot(volume);
Write
Preview
Loading…
Cancel
Save