Browse Source

ftdi: incorrectly using output register for direction

fix a simple copy/paste bug.

Change-Id: I5caaa4d16d30f26a453bd6a00c95261fd6e716c5
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/849
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
tags/v0.7.0-rc1
Spencer Oliver 11 years ago
committed by Freddie Chopin
parent
commit
baf1797406
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/jtag/drivers/ftdi.c

+ 1
- 1
src/jtag/drivers/ftdi.c View File

@@ -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;



Loading…
Cancel
Save