fill out the cable's chain pointer after we've finished connecting everything else

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1798 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 15 years ago
parent 5e1695c5ba
commit 644252507c

@ -3,6 +3,10 @@
* configure.ac (fmax): Drop fmax check as it is no longer used.
* src/tap/cable/generic.c (fmax): Drop now unused fmax fallback.
* src/cmd/cmd_cable.c (cmd_cable_run): Fill out the cable->chain link.
* src/tap/cable/generic.c (urj_tap_cable_generic_disconnect): Clear the
cable->chain link once we're done with it.
2010-06-22 Mike Frysinger <vapier@gentoo.org>
* src/tap/usbconn/libftdi.c (usbconn_ftdi_flush): Fix gcc printf warning.

@ -169,7 +169,11 @@ cmd_cable_run (urj_chain_t *chain, char *params[])
urj_param_clear (&cable_params);
return cable == NULL ? URJ_STATUS_FAIL : URJ_STATUS_OK;
if (cable == NULL)
return URJ_STATUS_FAIL;
chain->cable->chain = chain;
return URJ_STATUS_OK;
}
static void

@ -53,6 +53,7 @@ urj_tap_cable_generic_disconnect (urj_cable_t *cable)
{
urj_tap_cable_done (cable);
urj_tap_chain_disconnect (cable->chain);
cable->chain = NULL;
}
int

Loading…
Cancel
Save