diff --git a/src/dev/fsys.c b/src/dev/fsys.c index a6e1c24..08c4262 100644 --- a/src/dev/fsys.c +++ b/src/dev/fsys.c @@ -566,7 +566,7 @@ short fchan_seek(t_channel * chan, long position, short base) { return ERR_GENERAL; } - return fatfs_to_foenix(f_lseek(file, position)); + return fatfs_to_foenix(f_lseek(file, new_position)); } return ERR_BADCHANNEL;