Skip to content

Commit 26f06fc

Browse files
committed
Fix: "Serial camera doesn't work from drop-down", capture source not changing:
#99
1 parent 50d03ce commit 26f06fc

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
@@ -92,13 +92,8 @@ def run(self):
9292
should_push = True
9393
# If things aren't open, retry until they are. Don't let read requests come in any earlier
9494
# than this, otherwise we can deadlock (valve reference) ourselves.
95-
if (
96-
self.config.capture_source is not None
97-
and self.config.capture_source != ""
98-
):
99-
self.current_capture_source = self.config.capture_source
95+
if self.config.capture_source not in (None, ""):
10096
isSerial = any(x in str(self.config.capture_source) for x in PORTS)
101-
10297
if isSerial:
10398
if self.cv2_camera is not None:
10499
self.cv2_camera.release()

0 commit comments

Comments
 (0)