X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fjtag%2Fdrivers%2Fftdi.c;h=20969c04827462ac72d68b040b5ae145d142a285;hp=a038a232af6d15e0779eafcd3b6d593c72492245;hb=refs%2Fchanges%2F26%2F1426%2F4;hpb=a5768e9722837b2b72a4d493ad70e3229b9eede1 diff --git a/src/jtag/drivers/ftdi.c b/src/jtag/drivers/ftdi.c index a038a232af..20969c0482 100644 --- a/src/jtag/drivers/ftdi.c +++ b/src/jtag/drivers/ftdi.c @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * -* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * +* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * ***************************************************************************/ /** @@ -175,7 +175,7 @@ static int ftdi_set_signal(const struct signal *s, char value) output = data ? output | s->data_mask : output & ~s->data_mask; if (s->oe_mask == s->data_mask) - direction = oe ? output | s->oe_mask : output & ~s->oe_mask; + direction = oe ? direction | s->oe_mask : direction & ~s->oe_mask; else output = oe ? output | s->oe_mask : output & ~s->oe_mask;