diff options
| -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 98bfdce..1005780 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c @@ -150,7 +150,7 @@ int read(int fd, void* buf, int count) headbytes = count; openfiles[fd].cacheoffset += count; if ( openfiles[fd].cacheoffset >= SECTOR_SIZE ) - openfiles[fd].cacheoffset = 0; + openfiles[fd].cacheoffset = -1; } else { headbytes = SECTOR_SIZE - openfiles[fd].cacheoffset; |