commit 467f3759def75594b106bd506d2d4d12bbab4446
parent c267686e5d15278cd98bbed9386c10f7d4f4b14c
Author: Brian Swetland <swetland@frotz.net>
Date: Sun, 5 Oct 2014 02:08:05 -0700
jtag: oops, the last change broke jtag_goto RESET
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/jtag-core.c b/jtag-core.c
@@ -187,9 +187,6 @@ static u32 jtag_plot(u32 from, u32 to, u8 **bits) {
fprintf(stderr,"jtag_plot: move from %s to %s\n",
JSTATE[from], JSTATE[to]);
#endif
- if (from == to) {
- return 0;
- }
switch (from) {
case JTAG_RESET:
if (to == JTAG_IDLE) JPATH(0x00, 1); // 0
@@ -221,6 +218,8 @@ static u32 jtag_plot(u32 from, u32 to, u8 **bits) {
}
if (to == JTAG_RESET) JPATH(0x3F, 6); // 111111
+ if (from == to) return 0;
+
fprintf(stderr,"jtag_plot: cannot move from %s to %s\n",
JSTATE[from], JSTATE[to]);
return 0;