Merge pull request #3657 from thinkyhead/rc_revert_3648_fix_sd_printing

Revert PR 3648 to fix SD printing
This commit is contained in:
Scott Lahteine 2016-05-01 20:02:23 -07:00
commit 11b56a31ab

View file

@ -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 > 0x7E) goto fail;
// only upper case allowed in 8.3 names - convert lower to upper
name[i++] = (c < 'a' || c > 'z') ? (c) : (c + ('A' - 'a'));
}