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 219858c..1dd71d9 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) } else { if ( fat_readwrite(&(openfiles[fd].fatfile), 1, - &(openfiles[fd].cache),false) < 0 ) { + &(openfiles[fd].cache),false) < 1 ) { DEBUGF("Failed caching sector\n"); errno = EIO; return -1; |