From 61e4c8d8d7483ac814e91cad522a1c62ce754260 Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Mon, 2 Mar 2026 12:34:06 +0000 Subject: [PATCH] Apply suggestions from code review of branch opencv-camera-switcher Co-authored-by: Julian Stirling --- src/openflexure_microscope_server/things/camera/opencv_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openflexure_microscope_server/things/camera/opencv_utils.py b/src/openflexure_microscope_server/things/camera/opencv_utils.py index 472af386..ee331ced 100644 --- a/src/openflexure_microscope_server/things/camera/opencv_utils.py +++ b/src/openflexure_microscope_server/things/camera/opencv_utils.py @@ -59,7 +59,7 @@ def identify_cameras(camera_ids: list[int]) -> dict[str, int]: if camera_info.index in name_dict: name_dict[camera_info.index] = camera_info.name elif BACKEND == cv2.CAP_V4L2: - # If linux try to read video4linux name + # If Linux, try to read video4linux name as a fallback option. for camera_id in camera_ids: try: if not isinstance(camera_id, int):