From 5f23e7ac5e595e1f0e1937a72ad5cdff72dc83ac Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Tue, 8 Apr 2008 06:01:40 +0000 Subject: [PATCH] [ 1936543 ] Patch: Checkfor set-up cable in idcode git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1159 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 6 +++++- jtag/src/cmd/idcode.c | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 4e4f24fe..2b62577d 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,4 +1,8 @@ -2008-04-09 Kolja Waschk +2008-04-08 Kolja Waschk + + * src/cmd/idcode.c: [ 1936543 ] Check for set-up cable in idcode (U.Bonnes) + +2008-04-05 Kolja Waschk * src/tap/cable/usbblaster.c: [ 1934843 ] Fix for USBBLASTER (U.Bonnes) * src/jtag.c: [ 1933141 ] Don't add duplicate history lines (U.Bonnes) diff --git a/jtag/src/cmd/idcode.c b/jtag/src/cmd/idcode.c index 5cff75ac..8c702021 100644 --- a/jtag/src/cmd/idcode.c +++ b/jtag/src/cmd/idcode.c @@ -44,6 +44,9 @@ cmd_idcode_run( chain_t *chain, char *params[] ) else if (cmd_get_number( params[1], &bytes )) return -1; + if (!cmd_test_cable( chain )) + return 1; + printf( _("Reading %d bytes if idcode\n"), bytes ); idcode( chain , bytes); return 1;