diff options
Diffstat (limited to 'firmware/common')
-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 219858cff2..1dd71d98ae 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c | |||
@@ -286,7 +286,7 @@ static int readwrite(int fd, void* buf, int count, bool write) | |||
286 | } | 286 | } |
287 | else { | 287 | else { |
288 | if ( fat_readwrite(&(openfiles[fd].fatfile), 1, | 288 | if ( fat_readwrite(&(openfiles[fd].fatfile), 1, |
289 | &(openfiles[fd].cache),false) < 0 ) { | 289 | &(openfiles[fd].cache),false) < 1 ) { |
290 | DEBUGF("Failed caching sector\n"); | 290 | DEBUGF("Failed caching sector\n"); |
291 | errno = EIO; | 291 | errno = EIO; |
292 | return -1; | 292 | return -1; |