improve comment

This commit is contained in:
vincentserpoul
2017-02-17 01:24:57 +08:00
parent 16dcc99997
commit b13a99c292

View File

@@ -219,8 +219,8 @@ func (d *Device) GetStringDescriptor(desc_index int) (string, error) {
} }
// SetAutoDetach Enable/disable libusb's automatic kernel driver detachment. // SetAutoDetach Enable/disable libusb's automatic kernel driver detachment.
// When this is enabled libusb will automatically detach the kernel driver // When autodetach is enabled libusb will automatically detach the kernel driver
// on an interface when claiming the interface, and attach it when releasing the interface. // on the interface and reattach it when releasing the interface.
// Automatic kernel driver detachment is disabled on newly opened device handles by default. // Automatic kernel driver detachment is disabled on newly opened device handles by default.
func (d *Device) SetAutoDetach(autodetach bool) error { func (d *Device) SetAutoDetach(autodetach bool) error {
autodetachInt := 0 autodetachInt := 0