Pārlūkot izejas kodu

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

Don't reject 8.3-filenames with chars > 0x7f
Scott Lahteine 8 gadus atpakaļ
vecāks
revīzija
77d6e5283b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Marlin/SdBaseFile.cpp

+ 1
- 1
Marlin/SdBaseFile.cpp Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt