Skip to content

Commit

Permalink
8.3-filenames second try
Browse files Browse the repository at this point in the history
Fix for #6 3593, #3648
this time excludung 'DEL' instead of accidently '~'.
  • Loading branch information
Blue-Marlin committed May 2, 2016
1 parent f7185fb commit 5ad7d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/SdBaseFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ bool SdBaseFile::make83Name(const char* str, uint8_t* name, const char** ptr) {
uint8_t b;
while ((b = pgm_read_byte(p++))) if (b == c) goto fail;
// check size and only allow ASCII printable characters
if (i > n || c < 0x21 || c > 0x7E) goto fail;
if (i > n || c < 0x21 || c == 0x7F) goto fail;
// only upper case allowed in 8.3 names - convert lower to upper
name[i++] = (c < 'a' || c > 'z') ? (c) : (c + ('A' - 'a'));
}
Expand Down

0 comments on commit 5ad7d26

Please sign in to comment.