summaryrefslogtreecommitdiff
path: root/firmware/drivers/fat.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/fat.h')
-rw-r--r--firmware/drivers/fat.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/drivers/fat.h b/firmware/drivers/fat.h
index e259255d51..907f7b326f 100644
--- a/firmware/drivers/fat.h
+++ b/firmware/drivers/fat.h
@@ -64,7 +64,7 @@ struct bpb
64 64
65struct fat_direntry 65struct fat_direntry
66{ 66{
67 unsigned char name[12]; /* Name plus \0 */ 67 unsigned char name[256]; /* Name plus \0 */
68 unsigned short attr; /* Attributes */ 68 unsigned short attr; /* Attributes */
69 unsigned char crttimetenth; /* Millisecond creation 69 unsigned char crttimetenth; /* Millisecond creation
70 time stamp (0-199) */ 70 time stamp (0-199) */
@@ -74,8 +74,6 @@ struct fat_direntry
74 unsigned short wrttime; /* Last write time */ 74 unsigned short wrttime; /* Last write time */
75 unsigned short wrtdate; /* Last write date */ 75 unsigned short wrtdate; /* Last write date */
76 unsigned int filesize; /* File size in bytes */ 76 unsigned int filesize; /* File size in bytes */
77 unsigned short fstclusterlo;
78 unsigned short fstclusterhi;
79 int firstcluster; /* fstclusterhi<<16 + fstcluslo */ 77 int firstcluster; /* fstclusterhi<<16 + fstcluslo */
80}; 78};
81 79
@@ -91,7 +89,7 @@ struct fat_dirent
91 int entry; 89 int entry;
92 unsigned int cached_sec; 90 unsigned int cached_sec;
93 unsigned int num_sec; 91 unsigned int num_sec;
94 char cached_buf[SECTOR_SIZE]; 92 unsigned char cached_buf[SECTOR_SIZE];
95}; 93};
96 94
97struct fat_fileent 95struct fat_fileent