From da47b83b3d16433f7980e16e1ac151fbe166b407 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 1 May 2016 18:04:04 -0700 Subject: [PATCH] Revert PR 3648 to fix SD printing The character 0x7E is common in 8.3 filenames. Maybe the last condition should be removed completely instead. --- Marlin/SdBaseFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/SdBaseFile.cpp b/Marlin/SdBaseFile.cpp index 4927ab2e2..42403ec57 100644 --- a/Marlin/SdBaseFile.cpp +++ b/Marlin/SdBaseFile.cpp @@ -405,7 +405,7 @@ bool SdBaseFile::make83Name(const char* str, uint8_t* name, const char** ptr) { uint8_t b; while ((b = pgm_read_byte(p++))) if (b == c) goto fail; // check size and only allow ASCII printable characters - if (i > n || c < 0X21 || c == 0X7E)goto fail; + if (i > n || c < 0x21 || c > 0x7E) goto fail; // only upper case allowed in 8.3 names - convert lower to upper name[i++] = (c < 'a' || c > 'z') ? (c) : (c + ('A' - 'a')); }