From d91783bac7b491f88d621a9d281fa01e2a44d086 Mon Sep 17 00:00:00 2001 From: Patrick Gehrsitz Date: Sat, 30 Nov 2024 14:16:04 +0100 Subject: [PATCH] libcamera: only use ControlTypePoint for libcamera>=0.3.2 Signed-off-by: Patrick Gehrsitz --- device/libcamera/options.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/device/libcamera/options.cc b/device/libcamera/options.cc index e82deb2..e12eccc 100644 --- a/device/libcamera/options.cc +++ b/device/libcamera/options.cc @@ -218,10 +218,12 @@ static int libcamera_device_dump_control_option(device_option_fn fn, void *opaqu opt.type = device_option_type_string; break; +#if LIBCAMERA_VERSION_MAJOR == 0 && LIBCAMERA_VERSION_MINOR > 3 && LIBCAMERA_VERSION_PATCH >= 2 // Support for older libcamera versions case libcamera::ControlTypePoint: opt.type = device_option_type_float; opt.elems = 2; break; +#endif default: throw std::runtime_error("ControlType unsupported or not implemented");