stlink: remove stlink_api command
Remove stlink_api command. Change-Id: I8f7885d3756fec462f9ebbee2ed285a98a51366c Signed-off-by: Mathias K <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/1760 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
This commit is contained in:
committed by
Spencer Oliver
parent
1ab86419d7
commit
963214c83d
@@ -1652,12 +1652,7 @@ static int stlink_usb_open(struct hl_interface_param_s *param, void **fd)
|
||||
|
||||
api = h->version.jtag_api_max;
|
||||
|
||||
/* check that user has not requested certain api version
|
||||
* and if they have check it is supported */
|
||||
if ((param->api != 0) && (param->api <= h->version.jtag_api_max)) {
|
||||
api = param->api;
|
||||
LOG_INFO("using stlink api v%d", api);
|
||||
}
|
||||
LOG_INFO("using stlink api v%d", api);
|
||||
|
||||
/* set the used jtag api, this will default to the newest supported version */
|
||||
h->jtag_api = api;
|
||||
|
||||
Reference in New Issue
Block a user