Fix stupid bug in previous commit
This commit is contained in:
parent
5512a5d3a3
commit
9e15c77851
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue