From ae0e177221c32b444f98d155b322f94e9cfeb64a Mon Sep 17 00:00:00 2001 From: germeier Date: Wed, 11 Sep 2002 13:44:29 +0000 Subject: finished support for writing to internal memory --- libmpio/io.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'libmpio/io.c') diff --git a/libmpio/io.c b/libmpio/io.c index 4490a97..f4a5daf 100644 --- a/libmpio/io.c +++ b/libmpio/io.c @@ -2,7 +2,7 @@ /* * - * $Id: io.c,v 1.10 2002/09/11 11:55:37 germeier Exp $ + * $Id: io.c,v 1.11 2002/09/11 13:44:30 germeier Exp $ * * Library for USB MPIO-* * @@ -769,8 +769,15 @@ mpio_io_block_write(mpio_t *m, BYTE mem, mpio_fatentry_t *f, BYTE *data) 0xff, CMD_SIZE); if (mem == MPIO_INTERNAL_MEM) - memcpy((sendbuff+SECTOR_SIZE+(i * SECTOR_TRANS)), - f->i_fat, 0x10); + { + if (i == 0) + { + memcpy((sendbuff+SECTOR_SIZE+(i * SECTOR_TRANS)), + f->i_fat, 0x10); +/* debug("address %02x:%06x\n", chip, address); */ +/* hexdumpn(0, f->i_fat, 0x10); */ + } + } /* fill in block information */ if (mem == MPIO_EXTERNAL_MEM) -- cgit v1.2.3