Don't try to set extended device programming parameters if they
haven't been specified in the config file for the part. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@250 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
5a60659d9e
commit
4f9b61168c
9
stk500.c
9
stk500.c
|
@ -633,7 +633,15 @@ static int stk500_initialize(PROGRAMMER * pgm, AVRPART * p)
|
|||
}
|
||||
|
||||
if (n_extparms) {
|
||||
if ((p->pagel == 0) || (p->bs2 == 0)) {
|
||||
fprintf(stderr,
|
||||
"%s: please define PAGEL and BS2 signals in the configuration "
|
||||
"file for part %s\n",
|
||||
progname, p->desc);
|
||||
}
|
||||
else {
|
||||
buf[0] = n_extparms+1;
|
||||
|
||||
/*
|
||||
* m is currently pointing to eeprom memory if the part has it
|
||||
*/
|
||||
|
@ -658,6 +666,7 @@ static int stk500_initialize(PROGRAMMER * pgm, AVRPART * p)
|
|||
exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return pgm->program_enable(pgm, p);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue