ソースを参照

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

main
PaulStoffregen 5年前
コミット
a4c9800ac3
1個のファイルの変更3行の追加0行の削除
  1. +3
    -0
      SD.cpp

+ 3
- 0
SD.cpp ファイルの表示

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

読み込み中…
キャンセル
保存