aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Barner <barner@gmx.de>2011-09-16 21:06:02 +0200
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2011-10-08 23:08:15 +0200
commit3977c5169b53ae658db143ec95b652fdfbf0aec1 (patch)
treee84e4429737e0ed71ae41397bdae216174b3eb92 /src
parente42363c0f6a26522159e286e1524487863b66618 (diff)
arm-jtag-ew: Fix setting interface speed (1/2)
CMD_SET_TCK_FREQUENCY message length is 5, not 4 - Ticket: #34
Diffstat (limited to 'src')
-rw-r--r--src/jtag/drivers/arm-jtag-ew.c2
1 files changed, 1 insertions, 1 deletions
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)
{