Support for more special characters allowed in file names (^ + = [ ] ;
,)
This commit is contained in:
parent
6aaa40b9a3
commit
11ce786aaa
2 changed files with 13 additions and 6 deletions
Firmware
|
@ -394,7 +394,10 @@ bool SdBaseFile::make83Name(const char* str, uint8_t* name, const char** ptr) {
|
|||
i = 8; // place for extension
|
||||
} else {
|
||||
// illegal FAT characters
|
||||
PGM_P p = PSTR("|<>^+=?/[];,*\"\\");
|
||||
//PGM_P p = PSTR("|<>^+=?/[];,*\"\\");
|
||||
// 2019-08-27 really?
|
||||
// Microsoft defines, that only a subset of these characters is not allowed.
|
||||
PGM_P p = PSTR("|<>?/*\"\\");
|
||||
uint8_t b;
|
||||
while ((b = pgm_read_byte(p++))) if (b == c) goto fail;
|
||||
// check size and only allow ASCII printable characters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue