FTDI EVE: Cyrillic font, some minor fixes (#20517)

This commit is contained in:
LinFor
2020-12-23 09:51:59 +03:00
committed by GitHub
parent 6ec4e744c0
commit 6af6a35d9d
22 changed files with 3319 additions and 30 deletions

View File

@ -1077,7 +1077,7 @@ int8_t SdBaseFile::readDir(dir_t* dir, char* longFilename) {
// If we have a longFilename buffer, mark it as invalid.
// If a long filename is found it will be filled automatically.
if (longFilename) longFilename[0] = '\0';
if (longFilename) { longFilename[0] = '\0'; longFilename[1] = '\0'; }
while (1) {
@ -1089,7 +1089,7 @@ int8_t SdBaseFile::readDir(dir_t* dir, char* longFilename) {
// skip deleted entry and entry for . and ..
if (dir->name[0] == DIR_NAME_DELETED || dir->name[0] == '.') {
if (longFilename) longFilename[0] = '\0'; // Invalidate erased file long name, if any
if (longFilename) { longFilename[0] = '\0'; longFilename[1] = '\0'; } // Invalidate erased file long name, if any
continue;
}