Skip to content

Commit

Permalink
use in for string check
Browse files Browse the repository at this point in the history
  • Loading branch information
jveitchmichaelis authored Jun 29, 2022
1 parent 2fc545c commit b278ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flirpy/camera/lepton.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def find_video_device(self):
device_id = 0

for device in devices:
if device.contains("VendorID_1E4E") and device.contains("ProductID_0100"):
if "VendorID_1E4E" in device and "ProductID_0100" in device:
return device_id

else:
Expand Down

0 comments on commit b278ad4

Please sign in to comment.