~martijnbraam/lsplug

0748c96c317c373b9a9bad815ea8849fc06ce3c0 — Martijn Braam 9 months ago a886e82
Sort interfaces by interface number
1 files changed, 1 insertions(+), 1 deletions(-)

M lsplug/__main__.py
M lsplug/__main__.py => lsplug/__main__.py +1 -1
@@ 72,7 72,7 @@ def get_ports(filter=None, use_db=True, fixed=False, portinfo=False, devinfo=Fal
            device_subclass = sysfs_hex(port, 'bDeviceSubClass')
            device_protocol = sysfs_hex(port, 'bDeviceProtocol')
            print(f"   Class {device_class:02X} SubClass {device_subclass:02X} Protocol {device_protocol:02X}")
            for intf in glob.glob(os.path.join(port, "*:*")):
            for intf in sorted(glob.glob(os.path.join(port, "*:*"))):
                number = sysfs_int(intf, "bInterfaceNumber")
                intf_class = sysfs_hex(intf, "bInterfaceClass")
                intf_subclass = sysfs_hex(intf, "bInterfaceSubClass")