mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
pedal: fix warning on invalid serial (#1563)
* pedal: fix warning on invalid serial * fix * fix: * shouldn't need that * fix --------- Co-authored-by: Bruce Wayne <batman@comma.ai>
This commit is contained in:
@@ -423,7 +423,7 @@ class Panda:
|
||||
if device.getVendorID() == 0xbbaa and device.getProductID() in cls.USB_PIDS:
|
||||
try:
|
||||
serial = device.getSerialNumber()
|
||||
if len(serial) == 24:
|
||||
if len(serial) == 24 or serial == "pedal":
|
||||
ret.append(serial)
|
||||
else:
|
||||
logging.warning(f"found device with panda descriptors but invalid serial: {serial}", RuntimeWarning)
|
||||
|
||||
Reference in New Issue
Block a user