summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/fat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index 4caa233635..9d1f3af5ff 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -1285,10 +1285,11 @@ int fat_closewrite(struct fat_file *file, int size, int attr)
1285 } 1285 }
1286 } 1286 }
1287 1287
1288 if (file->dircluster) 1288 if (file->dircluster) {
1289 rc = update_short_entry(file, size, attr); 1289 rc = update_short_entry(file, size, attr);
1290 if (rc < 0) 1290 if (rc < 0)
1291 return rc * 10 - 1; 1291 return rc * 10 - 1;
1292 }
1292 1293
1293 flush_fat(); 1294 flush_fat();
1294 1295