]> git.sur5r.net Git - openocd/commitdiff
presto: fix tms_sequence short issue
authorRobert Pasz <kiurcher@users.sf.net>
Mon, 14 Nov 2011 20:25:05 +0000 (20:25 +0000)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Thu, 17 Nov 2011 23:14:16 +0000 (23:14 +0000)
fix issue when using tms_sequence short

see Trac #31

Change-Id: I22a9cd2af59eae4d8a276dae60b6a99d05af53bb
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/201
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/jtag/drivers/bitq.c

index b9b79e86f72e5119ff3e94e29634d0412b0d8ba3..87e0983d16bac5bb8e33829d5056fd6e35919b0a 100644 (file)
@@ -122,7 +122,7 @@ static void bitq_state_move(tap_state_t new_state)
        }
 
        tms_scan = tap_get_tms_path(tap_get_state(), new_state);
-       int tms_count = tap_get_tms_path_len(tap_get_state(), tap_get_end_state());
+       int tms_count = tap_get_tms_path_len(tap_get_state(), new_state);
 
        for (i = 0; i < tms_count; i++)
        {