From 73ac213cdd781f74425ae585980f20030ef28b04 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 17 Sep 2019 19:46:38 -0500 Subject: [PATCH] Fix FileList::isAtRootDir --- Marlin/src/lcd/extensible_ui/ui_api.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Marlin/src/lcd/extensible_ui/ui_api.cpp b/Marlin/src/lcd/extensible_ui/ui_api.cpp index 23e6718e1..61ad5a2f4 100644 --- a/Marlin/src/lcd/extensible_ui/ui_api.cpp +++ b/Marlin/src/lcd/extensible_ui/ui_api.cpp @@ -980,11 +980,11 @@ namespace ExtUI { } bool FileList::isAtRootDir() { - #if ENABLED(SDSUPPORT) - card.flag.workDirIsRoot; - #else - return true; - #endif + return (true + #if ENABLED(SDSUPPORT) + && card.flag.workDirIsRoot + #endif + ); } void FileList::upDir() {