This is an automated email from Gerrit.

Freddie Chopin ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/873

-- gerrit

commit c44db9d416fa9301197125c7cbe48e98e8224a23
Author: Spencer Oliver <[email protected]>
Date:   Wed Sep 26 15:31:53 2012 +0100

    ftdi: incorrectly using output register for direction
    
    fix a simple copy/paste bug.
    
    Change-Id: I5caaa4d16d30f26a453bd6a00c95261fd6e716c5
    Signed-off-by: Spencer Oliver <[email protected]>

diff --git a/src/jtag/drivers/ftdi.c b/src/jtag/drivers/ftdi.c
index 46797d7..b5bea83 100644
--- a/src/jtag/drivers/ftdi.c
+++ b/src/jtag/drivers/ftdi.c
@@ -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;
 

-- 

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to