Skip to content

Commit

Permalink
Merge pull request #37 from cstrahan/patch-1
Browse files Browse the repository at this point in the history
Fix interface string on macOS
  • Loading branch information
kevinmehall authored Feb 1, 2024
2 parents 5267b74 + b7cb0b6 commit edbc049
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platform/macos_iokit/enumeration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit edbc049

Please sign in to comment.