From 8b7c1e9cecd7455fb90f86c75d0741e894ef9d35 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 30 Oct 2017 15:51:38 -0500 Subject: [PATCH] Fix for MAX_VFAT_ENTRIES sanity check --- Marlin/Conditionals_post.h | 7 +++++++ Marlin/SdFatConfig.h | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Marlin/Conditionals_post.h b/Marlin/Conditionals_post.h index 2cab66631..29686a724 100644 --- a/Marlin/Conditionals_post.h +++ b/Marlin/Conditionals_post.h @@ -1053,4 +1053,11 @@ #endif #endif + // Number of VFAT entries used. Each entry has 13 UTF-16 characters + #if ENABLED(SCROLL_LONG_FILENAMES) + #define MAX_VFAT_ENTRIES (5) + #else + #define MAX_VFAT_ENTRIES (2) + #endif + #endif // CONDITIONALS_POST_H diff --git a/Marlin/SdFatConfig.h b/Marlin/SdFatConfig.h index 9305a0f11..82865e871 100644 --- a/Marlin/SdFatConfig.h +++ b/Marlin/SdFatConfig.h @@ -133,13 +133,6 @@ #define FILENAME_LENGTH 13 // Number of UTF-16 characters per entry -// Number of VFAT entries used. Each entry has 13 UTF-16 characters -#if ENABLED(SCROLL_LONG_FILENAMES) - #define MAX_VFAT_ENTRIES (5) -#else - #define MAX_VFAT_ENTRIES (2) -#endif - // Total bytes needed to store a single long filename #define LONG_FILENAME_LENGTH (FILENAME_LENGTH * MAX_VFAT_ENTRIES + 1)