rename Descriptor to DeviceDesc

This commit is contained in:
Sebastian Zagrodzki
2017-05-06 02:36:45 +02:00
parent 86c8e27edf
commit fedc9864dd
9 changed files with 29 additions and 29 deletions

View File

@@ -108,7 +108,7 @@ func main() {
log.Printf("Scanning for device %q...", devName)
// ListDevices is used to find the devices to open.
devs, err := ctx.ListDevices(func(desc *gousb.Descriptor) bool {
devs, err := ctx.ListDevices(func(desc *gousb.DeviceDesc) bool {
switch {
case vid == desc.Vendor && pid == desc.Product:
return true