This commit is contained in:
Kyle Lemons
2012-03-26 22:51:47 -07:00
parent 86ebf94158
commit 2da2ce1e17
5 changed files with 12 additions and 11 deletions

View File

@@ -89,7 +89,8 @@ func (d *Device) Reset() error {
return nil
}
var ControlTimeout = 5*time.Second
var ControlTimeout = 5 * time.Second
func (d *Device) Control(rType, request uint8, val, idx uint16, data []byte) (int, error) {
dataSlice := (*reflect.SliceHeader)(unsafe.Pointer(&data))
n := C.libusb_control_transfer(