Skip to content

Commit

Permalink
Fix D457 exposure range ctrl
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuys committed Oct 3, 2023
1 parent 6e56dbf commit 40b6df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/linux/backend-v4l2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1911,9 +1911,9 @@ namespace librealsense
return range;
}

struct v4l2_queryctrl query = {};
struct v4l2_query_ext_ctrl query = {};
query.id = get_cid(option);
if (xioctl(_fd, VIDIOC_QUERYCTRL, &query) < 0)
if (xioctl(_fd, VIDIOC_QUERY_EXT_CTRL, &query) < 0)
{
// Some controls (exposure, auto exposure, auto hue) do not seem to work on V4L2
// Instead of throwing an error, return an empty range. This will cause this control to be omitted on our UI sample.
Expand Down

0 comments on commit 40b6df2

Please sign in to comment.