Skip to content

Commit

Permalink
Document SetConfiguration().
Browse files Browse the repository at this point in the history
  • Loading branch information
hanwen committed Feb 7, 2013
1 parent 98ebc06 commit fab343b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usb/usb.go
Expand Up @@ -568,7 +568,8 @@ func (h *DeviceHandle) GetConfiguration() (byte, error) {
return byte(r), toErr(err)
}

// Set the active configuration for a device.
// Set the active configuration for a device. The argument should be
// a ConfigurationValue, as given in the ConfigDescriptor.
func (h *DeviceHandle) SetConfiguration(c byte) error {
err := C.libusb_set_configuration(h.me(), C.int(c))
return toErr(err)
Expand Down

0 comments on commit fab343b

Please sign in to comment.