Browse Source

8.3-filenames second try

Fix for #6 3593, #3648
this time excludung 'DEL' instead of accidently '~'.
Blue-Marlin 8 years ago
parent
commit
5ad7d263e9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/SdBaseFile.cpp

+ 1
- 1
Marlin/SdBaseFile.cpp View File

@@ -405,7 +405,7 @@ bool SdBaseFile::make83Name(const char* str, uint8_t* name, const char** ptr) {
405 405
       uint8_t b;
406 406
       while ((b = pgm_read_byte(p++))) if (b == c) goto fail;
407 407
       // check size and only allow ASCII printable characters
408
-      if (i > n || c < 0x21 || c > 0x7E) goto fail;
408
+      if (i > n || c < 0x21 || c == 0x7F) goto fail;
409 409
       // only upper case allowed in 8.3 names - convert lower to upper
410 410
       name[i++] = (c < 'a' || c > 'z') ? (c) : (c + ('A' - 'a'));
411 411
     }

Loading…
Cancel
Save