diff options
author | Guillaume Ballet <gballet@gmail.com> | 2019-07-03 23:22:27 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-07-03 23:22:27 +0800 |
commit | 8d2cf028a5e2280babc4d3b3481759e8e1b6cf56 (patch) | |
tree | 6816980ae5d70b4b56f7d5c20ba77e652982f757 /vendor/github.com/karalabe/usb | |
parent | 5f5de49cd9186d1c7adbaf0c55d4213234724e43 (diff) | |
download | go-tangerine-8d2cf028a5e2280babc4d3b3481759e8e1b6cf56.tar go-tangerine-8d2cf028a5e2280babc4d3b3481759e8e1b6cf56.tar.gz go-tangerine-8d2cf028a5e2280babc4d3b3481759e8e1b6cf56.tar.bz2 go-tangerine-8d2cf028a5e2280babc4d3b3481759e8e1b6cf56.tar.lz go-tangerine-8d2cf028a5e2280babc4d3b3481759e8e1b6cf56.tar.xz go-tangerine-8d2cf028a5e2280babc4d3b3481759e8e1b6cf56.tar.zst go-tangerine-8d2cf028a5e2280babc4d3b3481759e8e1b6cf56.zip |
vendor: update karalabe/usb to fix CGO=0 builds (#19790)
Diffstat (limited to 'vendor/github.com/karalabe/usb')
-rw-r--r-- | vendor/github.com/karalabe/usb/usb_disabled.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/github.com/karalabe/usb/usb_disabled.go b/vendor/github.com/karalabe/usb/usb_disabled.go index f7f42a4cf..77c900761 100644 --- a/vendor/github.com/karalabe/usb/usb_disabled.go +++ b/vendor/github.com/karalabe/usb/usb_disabled.go @@ -44,3 +44,8 @@ func EnumerateRaw(vendorID uint16, productID uint16) ([]DeviceInfo, error) { func EnumerateHid(vendorID uint16, productID uint16) ([]DeviceInfo, error) { return nil, nil } + +// Open connects to a previsouly discovered USB device. +func (info DeviceInfo) Open() (Device, error) { + return nil, ErrUnsupportedPlatform +} |