This is an automated email from Gerrit.

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

-- gerrit

commit 4fb4420dc99fea386e7fc548127e7b257e16b0c7
Author: Roman Reichel <[email protected]>
Date:   Tue Jan 15 23:13:08 2013 +0100

    opendous: Inhibit unnecessary state transitions
    
    When current tap state and end state are the same, transitions are added 
which is not what should happen.
    The usbprog driver was already patched like this long time ago.
    
    Change-Id: I339e87156bdc7b5c83c10c14025b749605d3871a
    Signed-off-by: Roman Reichel <[email protected]>

diff --git a/src/jtag/drivers/opendous.c b/src/jtag/drivers/opendous.c
index 1b74bd5..4f67244 100644
--- a/src/jtag/drivers/opendous.c
+++ b/src/jtag/drivers/opendous.c
@@ -422,7 +422,9 @@ void opendous_scan(int ir_scan, enum scan_type type, 
uint8_t *buffer, int scan_s
        /* Move to appropriate scan state */
        opendous_end_state(ir_scan ? TAP_IRSHIFT : TAP_DRSHIFT);
 
-       opendous_state_move();
+       if (tap_get_state() != tap_get_end_state())
+               opendous_state_move();
+       
        opendous_end_state(saved_end_state);
 
        /* Scan */

-- 

------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to