summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/common/file.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c
index 9b88461c63..dd953f44c5 100644
--- a/firmware/common/file.c
+++ b/firmware/common/file.c
@@ -337,19 +337,9 @@ static int flush_cache(int fd)
{
int rc;
struct filedesc* file = &openfiles[fd];
-#if 0
- int sector = file->fileoffset / SECTOR_SIZE;
-#endif
-
- DEBUGF("Flushing dirty sector cache %x\n", sector);
-
- /* seek back one sector to get file position right */
-#if 0
- rc = fat_seek(&(file->fatfile), sector);
- if ( rc < 0 )
- return rc * 10 - 1;
-#endif
+ DEBUGF("Flushing dirty sector cache\n");
+
rc = fat_readwrite(&(file->fatfile), 1,
file->cache, true );
if ( rc < 0 )