We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99f14e2 commit 8b1a011Copy full SHA for 8b1a011
1 file changed
library/lcd/lcd_comm_turing_usb.py
@@ -462,8 +462,11 @@ def encrypt_command_packet(data: bytearray) -> bytearray:
462
463
464
def find_usb_device():
465
+ dev = None
466
for pid in PRODUCT_ID:
467
dev = usb.core.find(idVendor=VENDOR_ID, idProduct=pid)
468
+ if dev is not None:
469
+ break
470
if dev is None:
471
raise ValueError(f'USB device not found')
472
0 commit comments