Skip to content

Commit

Permalink
Properly skip illegally named controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
corpnewt authored Nov 23, 2023
1 parent eef7d08 commit 871ae6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion USBMap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,8 @@ def main(self):
self.controllers.pop(x,None) # Remove it from the controllers to map
print(" - {}{}{} @ {} ({}{}{})".format(self.rs,par.rjust(pad),self.ce,acpi if acpi else "Unknown ACPI Path",self.rs,"Needs Rename" if name in self.illegal_names else "Not Unique",self.ce))
else: print(" - {}{}{} @ {}".format(self.cs,par.rjust(pad),self.ce,acpi if acpi else "Unknown ACPI Path"))
if not "XHCI" in self.connected_controllers[x]["type"]: continue # Only check XHCI for RHUB paths
if not x in self.connected_controllers or not "XHCI" in self.connected_controllers[x]["type"]:
continue # Only check legally named XHCI controllers for RHUB paths
# Get the RHUB name - mirrors the controller name if actually "RHUB"
if acpi:
rhub_name = "RHUB" if x.split("@")[0].upper() == self.connected_controllers[x]["parent_name"] else x.split("@")[0].upper()
Expand Down

0 comments on commit 871ae6d

Please sign in to comment.