mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
test: v4l2_videodevice: controls: Use correct control range in check
A value check on the V4L2_CID_CONTRAST control is using the brightness control range. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
6d2411fcb7
commit
7bb4d7144c
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ protected:
|
|||
}
|
||||
|
||||
if (ctrls.get(V4L2_CID_BRIGHTNESS) != brightness.range().min() ||
|
||||
ctrls.get(V4L2_CID_CONTRAST) != brightness.range().max() ||
|
||||
ctrls.get(V4L2_CID_CONTRAST) != contrast.range().max() ||
|
||||
ctrls.get(V4L2_CID_SATURATION) != saturation.range().min().get<int32_t>() + 1) {
|
||||
cerr << "Controls not updated when set" << endl;
|
||||
return TestFail;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue