diff --git a/libraries/SD/src/SD.cpp b/libraries/SD/src/SD.cpp index 65d32741c..3bf79aca2 100644 --- a/libraries/SD/src/SD.cpp +++ b/libraries/SD/src/SD.cpp @@ -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(); }