diff options
author | germeier <germeier> | 2002-09-18 22:18:29 +0000 |
---|---|---|
committer | germeier <germeier> | 2002-09-18 22:18:29 +0000 |
commit | 71ab9acfd97cf1f71c1f66f5e1a8b879c0960e40 (patch) | |
tree | ffeaaddfa7cfd37d66d790427b6ecd10baa51664 /libmpio/fat.c | |
parent | 4a49120603daab9f9ad280f0ef44e36b0218a302 (diff) | |
download | mpiosh-71ab9acfd97cf1f71c1f66f5e1a8b879c0960e40.tar.gz mpiosh-71ab9acfd97cf1f71c1f66f5e1a8b879c0960e40.tar.bz2 mpiosh-71ab9acfd97cf1f71c1f66f5e1a8b879c0960e40.zip |
removed wrong block mapping
added progress_callback for mpio_init
mpiosh: external memory is only selectable if it is available
Diffstat (limited to 'libmpio/fat.c')
-rw-r--r-- | libmpio/fat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpio/fat.c b/libmpio/fat.c index aead3a7..6279599 100644 --- a/libmpio/fat.c +++ b/libmpio/fat.c @@ -1,6 +1,6 @@ /* * - * $Id: fat.c,v 1.10 2002/09/11 13:44:30 germeier Exp $ + * $Id: fat.c,v 1.11 2002/09/18 22:18:29 germeier Exp $ * * Library for USB MPIO-* * @@ -259,7 +259,7 @@ mpio_fatentry_plus_plus(mpio_fatentry_t *f) /* read "fat_size" sectors of fat into the provided buffer */ int -mpio_fat_read (mpio_t *m, mpio_mem_t mem) +mpio_fat_read (mpio_t *m, mpio_mem_t mem, BYTE (*progress_callback)(int, int)) { mpio_smartmedia_t *sm; BYTE recvbuff[SECTOR_SIZE]; @@ -269,7 +269,7 @@ mpio_fat_read (mpio_t *m, mpio_mem_t mem) { sm = &m->internal; if (mpio_io_spare_read(m, mem, 0, (sm->size / sm->chips), 0, sm->fat, - (sm->fat_size * SECTOR_SIZE))) + (sm->fat_size * SECTOR_SIZE), progress_callback)) return 1; return 0; } |