diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libmpio/io.c | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2002-10-23 Markus Germeier <mager@tzi.de> + + * libmpio/io.c (mpio_io_spare_read): fixed init progress counter + for models with two internal chips + 2002-10-18 Andreas Buesching <crunchy@tzi.de> * mpiosh/global.c (commands): add config command with no diff --git a/libmpio/io.c b/libmpio/io.c index 87b74fe..f41f018 100644 --- a/libmpio/io.c +++ b/libmpio/io.c @@ -2,7 +2,7 @@ /* * - * $Id: io.c,v 1.20 2002/10/13 12:03:51 germeier Exp $ + * $Id: io.c,v 1.21 2002/10/23 00:03:42 germeier Exp $ * * Library for USB MPIO-* * @@ -1007,7 +1007,9 @@ mpio_io_spare_read(mpio_t *m, BYTE mem, DWORD index, BYTE size, CMD_SIZE); if ((progress_callback) && (i % 256)) - (*progress_callback)(mem, (i*CMD_SIZE), toread); + (*progress_callback)(mem, + (i*CMD_SIZE+(toread/chips*(chip-1))), + toread ); if(nread != CMD_SIZE) { |