diff --git a/python/PiFinder/ui/callbacks.py b/python/PiFinder/ui/callbacks.py index b1119415..af0fc314 100644 --- a/python/PiFinder/ui/callbacks.py +++ b/python/PiFinder/ui/callbacks.py @@ -110,7 +110,6 @@ def switch_cam_imx462(ui_module: UIModule) -> None: def get_camera_type(ui_module: UIModule) -> list: - print("Looking for cammmm") cam_id = "000" # read config.txt into a list @@ -121,7 +120,9 @@ def get_camera_type(ui_module: UIModule) -> list: for line in boot_lines: if line.startswith("dtoverlay=imx"): cam_id = line[10:16] - print("found cam " + cam_id) + # imx462 uses imx290 driver + if cam_id == "imx290": + cam_id = "imx462" return [cam_id] diff --git a/python/PiFinder/ui/menu_structure.py b/python/PiFinder/ui/menu_structure.py index e8fa4d48..162dfafe 100644 --- a/python/PiFinder/ui/menu_structure.py +++ b/python/PiFinder/ui/menu_structure.py @@ -861,7 +861,7 @@ { "name": "v3 - imx462", "callback": callbacks.switch_cam_imx462, - "value": "imx290", + "value": "imx462", }, ], },