Skip to content

Commit 00e03c8

Browse files
authored
Merge pull request #114 from SnuffSocket/fix-caps
Fix: "Serial camera doesn't work from drop-down"
2 parents 60013e5 + 26f06fc commit 00e03c8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

BabbleApp/camera.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,8 @@ def run(self):
9595
should_push = True
9696
# If things aren't open, retry until they are. Don't let read requests come in any earlier
9797
# than this, otherwise we can deadlock (valve reference) ourselves.
98-
if (
99-
self.config.capture_source is not None
100-
and self.config.capture_source != ""
101-
):
102-
self.current_capture_source = self.config.capture_source
98+
if self.config.capture_source not in (None, ""):
10399
isSerial = any(x in str(self.config.capture_source) for x in PORTS)
104-
105100
if isSerial:
106101
if self.cv2_camera is not None:
107102
self.cv2_camera.release()

0 commit comments

Comments
 (0)