aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usb-control/cp210x_controller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/usb-control/cp210x_controller.py b/usb-control/cp210x_controller.py
index 64a4709..47a79e6 100644
--- a/usb-control/cp210x_controller.py
+++ b/usb-control/cp210x_controller.py
@@ -61,7 +61,7 @@ def find_board_list(product_string, serialnumber):
kwargs = dict()
kwargs['idVendor'] = VENDOR_ID
kwargs['idProduct'] = PRODUCT_ID
- if product_string != None:
+ if product_string is not None:
kwargs['product'] = product_string
if serialnumber:
kwargs['serial_number'] = serialnumber