All declarations need to be at the top of the block.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@520 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
d53e6d7b25
commit
df27d4e06a
3
avr.c
3
avr.c
|
@ -485,6 +485,7 @@ int avr_write_byte(PROGRAMMER * pgm, AVRPART * p, AVRMEM * mem,
|
||||||
unsigned char safemode_hfuse;
|
unsigned char safemode_hfuse;
|
||||||
unsigned char safemode_efuse;
|
unsigned char safemode_efuse;
|
||||||
unsigned char safemode_fuse;
|
unsigned char safemode_fuse;
|
||||||
|
int rc;
|
||||||
|
|
||||||
/* If we write the fuses, then we need to tell safemode that they *should* change */
|
/* If we write the fuses, then we need to tell safemode that they *should* change */
|
||||||
safemode_memfuses(0, &safemode_lfuse, &safemode_hfuse, &safemode_efuse, &safemode_fuse);
|
safemode_memfuses(0, &safemode_lfuse, &safemode_hfuse, &safemode_efuse, &safemode_fuse);
|
||||||
|
@ -504,8 +505,6 @@ int avr_write_byte(PROGRAMMER * pgm, AVRPART * p, AVRMEM * mem,
|
||||||
|
|
||||||
safemode_memfuses(1, &safemode_lfuse, &safemode_hfuse, &safemode_efuse, &safemode_fuse);
|
safemode_memfuses(1, &safemode_lfuse, &safemode_hfuse, &safemode_efuse, &safemode_fuse);
|
||||||
|
|
||||||
int rc;
|
|
||||||
|
|
||||||
if (pgm->write_byte) {
|
if (pgm->write_byte) {
|
||||||
rc = pgm->write_byte(pgm, p, mem, addr, data);
|
rc = pgm->write_byte(pgm, p, mem, addr, data);
|
||||||
if (rc == 0) {
|
if (rc == 0) {
|
||||||
|
|
Loading…
Reference in New Issue