arm-jtag-ew: Fix setting interface speed (1/2)

CMD_SET_TCK_FREQUENCY message length is 5, not 4

- Ticket: #34
This commit is contained in:
Simon Barner 2011-09-16 21:06:02 +02:00 committed by Andreas Fritiofson
parent e42363c0f6
commit 3977c5169b

View 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)
{