mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Merge pull request #3042 from facchinm/test_PR3037
SD: allow multiple SD instances
This commit is contained in:
@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user