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
1 changed files with 1 additions and 1 deletions

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
if (parentdir.isRoot()) {
if ( ! file.open(SD.root, filepath, mode)) {
if ( ! file.open(root, filepath, mode)) {
// failed to open the file :(
return File();
}