From c9117b62a00606423d94121f56c2b1db78e78054 Mon Sep 17 00:00:00 2001 From: williamwadsworth Date: Thu, 26 Feb 2026 12:48:55 +0000 Subject: [PATCH] camera switching for opencv camera From discussion with @julianstirling --- src/openflexure_microscope_server/things/camera/opencv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openflexure_microscope_server/things/camera/opencv.py b/src/openflexure_microscope_server/things/camera/opencv.py index c01e1637..99c8f408 100644 --- a/src/openflexure_microscope_server/things/camera/opencv.py +++ b/src/openflexure_microscope_server/things/camera/opencv.py @@ -86,7 +86,7 @@ class OpenCVCamera(BaseCamera): self._camera_name = value # Return so we don't try to start the stream return - + self._camera_name = value if value not in self.cameras: raise ValueError(f"{value} is not a valid camera name.") self._start_stream()