use tap_get_tms_path_len() instead of fix # of 7. Not tested if this builds, but at least we're looking at a build error instead of a runtime error.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1833 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -916,8 +916,9 @@ void rlink_state_move(void) {
|
||||
|
||||
int i=0, tms=0;
|
||||
u8 tms_scan = tap_get_tms_path(tap_get_state(), tap_get_end_state());
|
||||
int tms_count = tap_get_tms_path_len(tap_get_state(), tap_get_end_state());
|
||||
|
||||
for (i = 0; i < 7; i++)
|
||||
for (i = 0; i < tms_count; i++)
|
||||
{
|
||||
tms = (tms_scan >> i) & 1;
|
||||
tap_state_queue_append(tms);
|
||||
|
||||
Reference in New Issue
Block a user