From 26f06fc9dac1e764fddea7277b9dde5585fb0fdd Mon Sep 17 00:00:00 2001 From: SnuffSocket <82658601+SnuffSocket@users.noreply.github.com> Date: Mon, 14 Apr 2025 02:13:59 +0300 Subject: [PATCH] Fix: "Serial camera doesn't work from drop-down", capture source not changing: https://github.com/Project-Babble/ProjectBabble/issues/99 --- BabbleApp/camera.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/BabbleApp/camera.py b/BabbleApp/camera.py index 1c425e1..f1be9b3 100644 --- a/BabbleApp/camera.py +++ b/BabbleApp/camera.py @@ -92,13 +92,8 @@ class Camera: should_push = True # If things aren't open, retry until they are. Don't let read requests come in any earlier # than this, otherwise we can deadlock (valve reference) ourselves. - if ( - self.config.capture_source is not None - and self.config.capture_source != "" - ): - self.current_capture_source = self.config.capture_source + if self.config.capture_source not in (None, ""): isSerial = any(x in str(self.config.capture_source) for x in PORTS) - if isSerial: if self.cv2_camera is not None: self.cv2_camera.release()