Fix pseudo/full parallel mode selection logic.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@210 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
55380e6cbb
commit
d2be0bb300
8
stk500.c
8
stk500.c
|
@ -448,10 +448,12 @@ static int stk500_initialize(PROGRAMMER * pgm, AVRPART * p)
|
||||||
else
|
else
|
||||||
buf[3] = 1; /* device supports parallel only */
|
buf[3] = 1; /* device supports parallel only */
|
||||||
|
|
||||||
if ((p->flags & AVRPART_PARALLELOK) && (p->flags & AVRPART_PSEUDOPARALLEL))
|
if (p->flags & AVRPART_PARALLELOK) {
|
||||||
buf[4] = 1; /* full parallel interface */
|
if (p->flags & AVRPART_PSEUDOPARALLEL)
|
||||||
else
|
|
||||||
buf[4] = 0; /* pseudo parallel interface */
|
buf[4] = 0; /* pseudo parallel interface */
|
||||||
|
else
|
||||||
|
buf[4] = 1; /* full parallel interface */
|
||||||
|
}
|
||||||
|
|
||||||
buf[5] = 1; /* polling supported - XXX need this in config file */
|
buf[5] = 1; /* polling supported - XXX need this in config file */
|
||||||
buf[6] = 1; /* programming is self-timed - XXX need in config file */
|
buf[6] = 1; /* programming is self-timed - XXX need in config file */
|
||||||
|
|
Loading…
Reference in New Issue