From ca91b679a541c9f8b1e5b5e59c0dcacb4265a500 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 29 Jan 2007 23:35:21 +0000 Subject: Reverting the FAT32 driver change - it seems to have introduced a bug git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12152 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/fat.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/fat.h b/firmware/export/fat.h index 93b60e6dc0..2680fdf751 100644 --- a/firmware/export/fat.h +++ b/firmware/export/fat.h @@ -73,19 +73,13 @@ struct fat_file #endif }; -#define FAT_DIR_BUFSECTORS 2 /* Needs to be an even number, at least 2 */ -#define FAT_DIR_BUFSIZE (SECTOR_SIZE*FAT_DIR_BUFSECTORS) - struct fat_dir { unsigned int entry; unsigned int entrycount; long sector; struct fat_file file; - /* The buffer needs to be at least 3 sectors, so we make it 2*2 and - alternate between them */ - unsigned char sectorcache[2][FAT_DIR_BUFSIZE]; - unsigned int bufindex; /* Which buffer to be loaded next */ + unsigned char sectorcache[3][SECTOR_SIZE]; }; -- cgit v1.2.3