Don't call the programmer's 'paged_write' routine unless the memory

itself is paged as it doesn't appear to work otherwise.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@259 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Brian S. Dean
2003-03-05 02:35:50 +00:00
parent f8d2ad4d3d
commit a61708b2b9
2 changed files with 18 additions and 1 deletions

4
avr.c
View File

@@ -687,9 +687,11 @@ int avr_write(PROGRAMMER * pgm, AVRPART * p, char * memtype, int size,
if (m->paged) {
return pgm->paged_write(pgm, p, m, m->page_size, size);
}
#if 0
else {
return pgm->paged_write(pgm, p, m, pgm->page_size, size);
return pgm->paged_write(pgm, p, m, 32 /*pgm->page_size*/, size);
}
#endif
}
}