Skip to content

Commit

Permalink
Add output for bus and port
Browse files Browse the repository at this point in the history
  • Loading branch information
gfenn-newbury committed Apr 30, 2022
1 parent 9964abd commit 07d5144
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions servo_stick.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def set_axis_number(self, axis):
raise Exception('Axis number must be 4 or 8')
usb_devices = usb.core.find(find_all=True, idVendor=VENDOR, idProduct=PRODUCT)
for dev in usb_devices:
print(f'Bus: {dev.bus}, Port: {dev.port_number}')
servo_stik = UltimarcServoStik(dev)
servo_stik.clear_drivers()
servo_stik.set_axis_number(axis)
Expand Down

0 comments on commit 07d5144

Please sign in to comment.