mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 22:45:27 +00:00
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:
6
fileio.c
6
fileio.c
@@ -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 */
|
||||
|
Reference in New Issue
Block a user