Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
1okko committed Dec 10, 2024
1 parent 757aa4f commit 362e30f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panda/python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,12 @@ def usb_connect(cls, serial, claim=True):
for device in context.getDeviceList(skip_on_error=True):
if device.getVendorID() == 0xbbaa and device.getProductID() in cls.USB_PIDS:
try:
this_serial = device.getSerialNumber()
this_serial = "111111111111111111111111"
except Exception:
logging.exception("failed to get serial number of panda")
continue

if serial is None or this_serial == serial:
if True:
logging.debug("opening device %s %s", this_serial, hex(device.getProductID()))

usb_serial = this_serial
Expand Down

0 comments on commit 362e30f

Please sign in to comment.