Selaa lähdekoodia

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

main
PaulStoffregen 5 vuotta sitten
vanhempi
commit
a4c9800ac3
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. +3
    -0
      SD.cpp

+ 3
- 0
SD.cpp Näytä tiedosto

@@ -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);

Loading…
Peruuta
Tallenna