]> git.sur5r.net Git - openocd/commitdiff
arm-jtag-ew: Fix setting interface speed (1/2)
authorSimon Barner <barner@gmx.de>
Fri, 16 Sep 2011 19:06:02 +0000 (21:06 +0200)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 8 Oct 2011 21:08:15 +0000 (23:08 +0200)
CMD_SET_TCK_FREQUENCY message length is 5, not 4

- Ticket: #34

src/jtag/drivers/arm-jtag-ew.c

index 44eaeff1f407b8f9baa13d4674b758cf28b0e52a..f39730f9d73ccced1d66cb5e2067081587d849e0 100644 (file)
@@ -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)
     {