diff --git a/sys/fs/fat/fat.c b/sys/fs/fat/fat.c index acb0f7a..cbe477f 100644 --- a/sys/fs/fat/fat.c +++ b/sys/fs/fat/fat.c @@ -104,7 +104,9 @@ FL_FILE *_file = (FL_FILE*) fd->res; //kprintf("Reading: %i[%i]\n", size, offset); - fl_fseek(_file, offset, 0); + if (fl_fseek(_file, offset, 0) != offset) + kprintf("SEEK FAILED!"); + size = fl_fread(data, size, 1, _file); kprintf("[Read:%i]", size);