Merge pull request #37 from cstrahan/patch-1

Fix interface string on macOS
This commit is contained in:
Kevin Mehall 2024-01-31 20:53:46 -07:00 committed by GitHub
commit edbc049854
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()