From: Robert Pasz Date: Mon, 14 Nov 2011 20:25:05 +0000 (+0000) Subject: presto: fix tms_sequence short issue X-Git-Tag: v0.6.0-rc1~417 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=280e1b334abc051d80e71ace8cec8cca0d663842;p=openocd presto: fix tms_sequence short issue fix issue when using tms_sequence short see Trac #31 Change-Id: I22a9cd2af59eae4d8a276dae60b6a99d05af53bb Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/201 Tested-by: jenkins Reviewed-by: Andreas Fritiofson --- diff --git a/src/jtag/drivers/bitq.c b/src/jtag/drivers/bitq.c index b9b79e86..87e0983d 100644 --- a/src/jtag/drivers/bitq.c +++ b/src/jtag/drivers/bitq.c @@ -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++) {