From 3eca37f1e68996a2be3b092383b9f067d578c8b7 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 30 Jun 2011 15:02:39 +0000 Subject: [PATCH] urj_tap_cable_wait: fix off-by-one logic in a previous commit pointed out by Jie Zhang git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1940 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 3 +++ urjtag/src/tap/cable.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 9864ec17..ad0ef220 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -9,6 +9,9 @@ * src/bfin/bfin.c (chain_system_reset): Rewrite to work around known anomalies with software reset and Blackfin cores. + * src/tap/chain.c (urj_tap_cable_wait): Fix off-by-one error in previous wait + logic tweaking. + 2011-06-29 Mike Frysinger * src/tap/cable.c (urj_tap_cable_wait): Tweak code style to silence warnings diff --git a/urjtag/src/tap/cable.c b/urjtag/src/tap/cable.c index 036113e6..9d3fe73f 100644 --- a/urjtag/src/tap/cable.c +++ b/urjtag/src/tap/cable.c @@ -528,7 +528,7 @@ urj_tap_cable_wait (urj_cable_t *cable) j = i; /* Avoid gcc set-but-unused warnings */ - cable->delay = j; + cable->delay = j + 1; } static urj_cable_t *