Merge pull request #37 from cstrahan/patch-1
Fix interface string on macOS
This commit is contained in:
commit
edbc049854
1 changed files with 2 additions and 1 deletions
|
|
@ -72,7 +72,8 @@ fn probe_device(device: IoService) -> Option<DeviceInfo> {
|
|||
class: get_integer_property(&child, "bInterfaceClass")?,
|
||||
subclass: get_integer_property(&child, "bInterfaceSubClass")?,
|
||||
protocol: get_integer_property(&child, "bInterfaceProtocol")?,
|
||||
interface_string: get_string_property(&child, "USB Interface Name"),
|
||||
interface_string: get_string_property(&child, "kUSBString")
|
||||
.or_else(|| get_string_property(&child, "USB Interface Name")),
|
||||
})
|
||||
})
|
||||
.collect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue