Ver código fonte

Merge pull request #3648 from Blue-Marlin/83filenames

Don't reject 8.3-filenames with chars > 0x7f
Scott Lahteine 8 anos atrás
pai
commit
77d6e5283b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      Marlin/SdBaseFile.cpp

+ 1
- 1
Marlin/SdBaseFile.cpp Ver arquivo

@@ -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 == 0X7E)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
     }

Carregando…
Cancelar
Salvar