1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-17 06:52:18 +01:00

Merge pull request #3042 from facchinm/test_PR3037

SD: allow multiple SD instances
This commit is contained in:
Martino Facchin 2015-04-27 12:00:27 +02:00
commit 8d840c5e8a

View File

@ -450,7 +450,7 @@ File SDClass::open(const char *filepath, uint8_t mode) {
// there is a special case for the Root directory since its a static dir // there is a special case for the Root directory since its a static dir
if (parentdir.isRoot()) { if (parentdir.isRoot()) {
if ( ! file.open(SD.root, filepath, mode)) { if ( ! file.open(root, filepath, mode)) {
// failed to open the file :( // failed to open the file :(
return File(); return File();
} }