diff options
author | germeier <germeier> | 2002-10-23 00:03:42 +0000 |
---|---|---|
committer | germeier <germeier> | 2002-10-23 00:03:42 +0000 |
commit | 7c902a129b329e0e2cd905adf0b2f38d6990e8e5 (patch) | |
tree | 584d0a8feaa03a870fedaf52f3a6f7c6983de0ff | |
parent | 28a00b98de04a151bea871c5f63a4ed7fcec9412 (diff) | |
download | mpiosh-7c902a129b329e0e2cd905adf0b2f38d6990e8e5.tar.gz mpiosh-7c902a129b329e0e2cd905adf0b2f38d6990e8e5.tar.bz2 mpiosh-7c902a129b329e0e2cd905adf0b2f38d6990e8e5.zip |
fixed init progress counter for models with two internal chips
-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) { |