diff --git a/project/Core/Src/llfs.c b/project/Core/Src/llfs.c index 62588de..cd08cd3 100644 --- a/project/Core/Src/llfs.c +++ b/project/Core/Src/llfs.c @@ -57,7 +57,7 @@ size_t llfs_file_list(llfs_file_t* file_list, size_t max_files, char* filter) { } // Iterate over all files in the filesystem - while (file != NULL && file_count < max_files) { + while (file != NULL && count < max_files) { // Filter out files with a filename that does not match the filter if (filter != NULL) { if (!file_ext_cmp(file->name, filter)) {