Skip to content

Commit ed6d07d

Browse files
committed
(fix?) Fix bad if statement
1 parent c50d2dc commit ed6d07d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

BabbleApp/camera.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def run(self):
8686
self.config.capture_source is not None
8787
and self.config.capture_source != ""
8888
):
89-
if "COM" or "/dev/tty" in str(self.config.capture_source):
89+
capture = str(self.config.capture_source)
90+
if "COM" in capture or "/dev/tty" in capture:
9091
if (
9192
self.serial_connection is None
9293
or self.camera_status == CameraState.DISCONNECTED

0 commit comments

Comments
 (0)