improve comment

This commit is contained in:
vincentserpoul
2017-02-17 01:24:57 +08:00
parent 09dcccd0dd
commit d8e3995f7c

View File

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