Skip to content

Commit

Permalink
libcamera: only use ControlTypePoint for libcamera>=0.3.2
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Gehrsitz <[email protected]>
  • Loading branch information
mryel00 committed Nov 30, 2024
1 parent ad561eb commit d91783b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions device/libcamera/options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit d91783b

Please sign in to comment.