From: Simon Barner Date: Fri, 16 Sep 2011 19:06:02 +0000 (+0200) Subject: arm-jtag-ew: Fix setting interface speed (1/2) X-Git-Tag: v0.6.0-rc1~562 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3977c5169b53ae658db143ec95b652fdfbf0aec1;p=openocd arm-jtag-ew: Fix setting interface speed (1/2) CMD_SET_TCK_FREQUENCY message length is 5, not 4 - Ticket: #34 --- diff --git a/src/jtag/drivers/arm-jtag-ew.c b/src/jtag/drivers/arm-jtag-ew.c index 44eaeff1..f39730f9 100644 --- a/src/jtag/drivers/arm-jtag-ew.c +++ b/src/jtag/drivers/arm-jtag-ew.c @@ -186,7 +186,7 @@ static int armjtagew_speed(int speed) usb_out_buffer[0] = CMD_SET_TCK_FREQUENCY; buf_set_u32(usb_out_buffer + 1, 0, 32, speed); - result = armjtagew_usb_message(armjtagew_handle, 4, 4); + result = armjtagew_usb_message(armjtagew_handle, 5, 4); if (result < 0) {