Commit changes in preparation for support the ATMega line.

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@76 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Brian S. Dean
2001-10-13 03:12:52 +00:00
parent 0e18e555ed
commit 42a81370c7
6 changed files with 181 additions and 103 deletions

View File

@@ -502,7 +502,7 @@ int fmt_autodetect ( char * fname )
int fileio ( int op, char * filename, FILEFMT format,
struct avrpart * p, AVRMEM memtype, int size )
struct avrpart * p, int memtype, int size )
{
int rc;
FILE * f;
@@ -536,9 +536,9 @@ int fileio ( int op, char * filename, FILEFMT format,
}
/* point at the requested memory buffer */
buf = p->mem[memtype];
buf = p->mem[memtype].buf;
if (fio.op == FIO_READ)
size = p->memsize[memtype];
size = p->mem[memtype].size;
if (fio.op == FIO_READ) {
/* 0xff fill unspecified memory */