fix logic test

This commit is contained in:
Gilles Boccon-Gibod
2022-08-25 16:26:59 -07:00
parent 0568cead47
commit 16217cf758
+1 -1
View File
@@ -287,7 +287,7 @@ async def open_usb_transport(spec):
if (
device.getVendorID() == int(vendor_id, 16) and
device.getProductID() == int(product_id, 16) and
serial_number is None or device.getSerialNumber() == serial_number
(serial_number is None or device.getSerialNumber() == serial_number)
):
if device_index == 0:
found = device