git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
a60be87
)
libftdi: (tomj) fixed broken ftdi_set_latency_timer
author
Thomas Jarosch
<opensource@intra2net.com>
Wed, 28 Jan 2004 19:47:06 +0000 (19:47 +0000)
committer
Thomas Jarosch
<opensource@intra2net.com>
Wed, 28 Jan 2004 19:47:06 +0000 (19:47 +0000)
ftdi/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/ftdi/ftdi.c
b/ftdi/ftdi.c
index
defd278
..
d98ce9c
100644
(file)
--- a/
ftdi/ftdi.c
+++ b/
ftdi/ftdi.c
@@
-302,6
+302,7
@@
int ftdi_set_latency_timer(struct ftdi_context *ftdi, unsigned char latency) {
return -1;
}
+ usb_val = latency;
if (usb_control_msg(ftdi->usb_dev, 0x40, 0x09, usb_val, 0, NULL, 0, ftdi->usb_timeout) != 0) {
ftdi->error_str = "Unable to set latency timer";
return -2;