diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/common/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c index 98bfdce42e..1005780cff 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c | |||
@@ -150,7 +150,7 @@ int read(int fd, void* buf, int count) | |||
150 | headbytes = count; | 150 | headbytes = count; |
151 | openfiles[fd].cacheoffset += count; | 151 | openfiles[fd].cacheoffset += count; |
152 | if ( openfiles[fd].cacheoffset >= SECTOR_SIZE ) | 152 | if ( openfiles[fd].cacheoffset >= SECTOR_SIZE ) |
153 | openfiles[fd].cacheoffset = 0; | 153 | openfiles[fd].cacheoffset = -1; |
154 | } | 154 | } |
155 | else { | 155 | else { |
156 | headbytes = SECTOR_SIZE - openfiles[fd].cacheoffset; | 156 | headbytes = SECTOR_SIZE - openfiles[fd].cacheoffset; |