Przeglądaj źródła

8.3-filenames second try

Fix for #6 3593, #3648
this time excludung 'DEL' instead of accidently '~'.
Blue-Marlin 8 lat temu
rodzic
commit
5ad7d263e9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      Marlin/SdBaseFile.cpp

+ 1
- 1
Marlin/SdBaseFile.cpp Wyświetl plik

@@ -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
     }

Ładowanie…
Anuluj
Zapisz