summaryrefslogtreecommitdiff
path: root/firmware/common/dir_uncached.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/dir_uncached.c')
-rw-r--r--firmware/common/dir_uncached.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/common/dir_uncached.c b/firmware/common/dir_uncached.c
index e3e33a4..2ce23e8 100644
--- a/firmware/common/dir_uncached.c
+++ b/firmware/common/dir_uncached.c
@@ -171,7 +171,7 @@ struct dirent_uncached* readdir_uncached(DIR_UNCACHED* dir)
if (fat_ismounted(dir->volumecounter))
{
memset(theent, 0, sizeof(*theent));
- theent->attribute = FAT_ATTR_DIRECTORY | FAT_ATTR_VOLUME;
+ theent->info.attribute = FAT_ATTR_DIRECTORY | FAT_ATTR_VOLUME;
snprintf(theent->d_name, sizeof(theent->d_name),
VOL_NAMES, dir->volumecounter);
return theent;
@@ -187,11 +187,11 @@ struct dirent_uncached* readdir_uncached(DIR_UNCACHED* dir)
return NULL;
strlcpy(theent->d_name, entry.name, sizeof(theent->d_name));
- theent->attribute = entry.attr;
- theent->size = entry.filesize;
+ theent->info.attribute = entry.attr;
+ theent->info.wrtdate = entry.wrtdate;
+ theent->info.wrttime = entry.wrttime;
+ theent->info.size = entry.filesize;
theent->startcluster = entry.firstcluster;
- theent->wrtdate = entry.wrtdate;
- theent->wrttime = entry.wrttime;
return theent;
}