Browse Source

Fix FileList::isAtRootDir

Scott Lahteine 5 years ago
parent
commit
73ac213cdd
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      Marlin/src/lcd/extensible_ui/ui_api.cpp

+ 5
- 5
Marlin/src/lcd/extensible_ui/ui_api.cpp View File

980
   }
980
   }
981
 
981
 
982
   bool FileList::isAtRootDir() {
982
   bool FileList::isAtRootDir() {
983
-    #if ENABLED(SDSUPPORT)
984
-      card.flag.workDirIsRoot;
985
-    #else
986
-      return true;
987
-    #endif
983
+    return (true
984
+      #if ENABLED(SDSUPPORT)
985
+        && card.flag.workDirIsRoot
986
+      #endif
987
+    );
988
   }
988
   }
989
 
989
 
990
   void FileList::upDir() {
990
   void FileList::upDir() {

Loading…
Cancel
Save