Explorar el Código

8.3-filenames second try

Fix for #6 3593, #3648
this time excludung 'DEL' instead of accidently '~'.
Blue-Marlin hace 8 años
padre
commit
5ad7d263e9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Marlin/SdBaseFile.cpp

+ 1
- 1
Marlin/SdBaseFile.cpp Ver fichero

@@ -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…
Cancelar
Guardar