aboutsummaryrefslogtreecommitdiff
path: root/libmpio
diff options
context:
space:
mode:
authorgermeier <germeier>2002-10-23 00:03:42 +0000
committergermeier <germeier>2002-10-23 00:03:42 +0000
commit7c902a129b329e0e2cd905adf0b2f38d6990e8e5 (patch)
tree584d0a8feaa03a870fedaf52f3a6f7c6983de0ff /libmpio
parent28a00b98de04a151bea871c5f63a4ed7fcec9412 (diff)
downloadmpiosh-7c902a129b329e0e2cd905adf0b2f38d6990e8e5.tar.gz
mpiosh-7c902a129b329e0e2cd905adf0b2f38d6990e8e5.tar.bz2
mpiosh-7c902a129b329e0e2cd905adf0b2f38d6990e8e5.zip
fixed init progress counter for models with two internal chips
Diffstat (limited to 'libmpio')
-rw-r--r--libmpio/io.c6
1 files changed, 4 insertions, 2 deletions
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)
{