From 988a0c60cb6d56a84ffaed3918ad853e044fe3ea Mon Sep 17 00:00:00 2001 From: "Brian S. Dean" Date: Thu, 20 Feb 2003 19:50:32 +0000 Subject: [PATCH] Fix pseudo/full parallel mode selection logic. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@210 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/stk500.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/avrdude/stk500.c b/avrdude/stk500.c index f231abea..7673b1aa 100644 --- a/avrdude/stk500.c +++ b/avrdude/stk500.c @@ -448,10 +448,12 @@ static int stk500_initialize(PROGRAMMER * pgm, AVRPART * p) else buf[3] = 1; /* device supports parallel only */ - if ((p->flags & AVRPART_PARALLELOK) && (p->flags & AVRPART_PSEUDOPARALLEL)) - buf[4] = 1; /* full parallel interface */ - else - buf[4] = 0; /* pseudo parallel interface */ + if (p->flags & AVRPART_PARALLELOK) { + if (p->flags & AVRPART_PSEUDOPARALLEL) + 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[6] = 1; /* programming is self-timed - XXX need in config file */