Browse Source

Add SD.begin() to be called more than once

main
PaulStoffregen 4 years ago
parent
commit
a4c9800ac3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      SD.cpp

+ 3
- 0
SD.cpp View File

Return true if initialization succeeds, false otherwise. Return true if initialization succeeds, false otherwise.


*/ */

if (root.isOpen()) root.close();

return card.init(SPI_HALF_SPEED, csPin) && return card.init(SPI_HALF_SPEED, csPin) &&
volume.init(card) && volume.init(card) &&
root.openRoot(volume); root.openRoot(volume);

Loading…
Cancel
Save