Skip to content

Commit 8d840c5

Browse files
committed
Merge pull request #3042 from facchinm/test_PR3037
SD: allow multiple SD instances
2 parents 90026f3 + 1c25d24 commit 8d840c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SD/src/SD.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ File SDClass::open(const char *filepath, uint8_t mode) {
450450

451451
// there is a special case for the Root directory since its a static dir
452452
if (parentdir.isRoot()) {
453-
if ( ! file.open(SD.root, filepath, mode)) {
453+
if ( ! file.open(root, filepath, mode)) {
454454
// failed to open the file :(
455455
return File();
456456
}

0 commit comments

Comments
 (0)