Correct checking of the parameter number of parallel cable

* src/tap/chain.c (urj_tap_chain_connect): Correct checking of the
    parameter number of parallel cable.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1957 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Jie Zhang 14 years ago
parent a919e31530
commit 3a0b051033

@ -1,3 +1,8 @@
2011-07-06 Jie Zhang <jie.zhang@analog.com>
* src/tap/chain.c (urj_tap_chain_connect): Correct checking of the
parameter number of parallel cable.
2011-07-04 Mike Frysinger <vapier@gentoo.org>
* src/bus/arm9tdmi.c, src/bus/ejtag_dma.c, src/bus/ixp435.c,

@ -96,10 +96,10 @@ urj_tap_chain_connect (urj_chain_t *chain, const char *drivername, char *params[
if (driver->device_type == URJ_CABLE_DEVICE_PARPORT)
{
if (paramc < 1)
if (paramc < 2)
{
urj_error_set (URJ_ERROR_SYNTAX,
"parallel cable requires >= 2 parameters, got %d", paramc);
"parallel cable requires >= 4 parameters, got %d", paramc);
return URJ_STATUS_FAIL;
}
for (j = 0; j < URJ_CABLE_PARPORT_N_DEVS; j++)

Loading…
Cancel
Save