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

This commit is contained in:
LinFor authored and GitHub committed 2020-12-23 00:51:59 -06:00
1 parent 6ec4e744c0
commit 6af6a35d9d
22 files changed
+3319 -30

No files matched your search

+2 -2
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;
}