From 9e15c77851b40464ba2bf38f02b400b8a408e7c6 Mon Sep 17 00:00:00 2001 From: Vincent Barrilliot Date: Fri, 12 Nov 2021 14:22:12 +0000 Subject: [PATCH] Fix stupid bug in previous commit --- src/dev/fsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;