Skip to content

Commit

Permalink
Merge pull request jnohlgard#8 from Mizux/patch-1
Browse files Browse the repository at this point in the history
Fix some getter
  • Loading branch information
jnohlgard committed Jul 24, 2014
2 parents 27c5008 + c5ea5f7 commit dc09a8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v4l2capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ static PyObject *Video_device_get_exposure_auto(Video_device *self)
struct v4l2_control ctrl;
CLEAR(ctrl);
ctrl.id = V4L2_CID_EXPOSURE_AUTO;
if(my_ioctl(self->fd, VIDIOC_S_CTRL, &ctrl)){
if(my_ioctl(self->fd, VIDIOC_G_CTRL, &ctrl)){
return NULL;
}
return Py_BuildValue("i",ctrl.value);
Expand Down Expand Up @@ -520,7 +520,7 @@ static PyObject *Video_device_get_focus_auto(Video_device *self)
struct v4l2_control ctrl;
CLEAR(ctrl);
ctrl.id = V4L2_CID_FOCUS_AUTO;
if(my_ioctl(self->fd, VIDIOC_S_CTRL, &ctrl)){
if(my_ioctl(self->fd, VIDIOC_G_CTRL, &ctrl)){
return NULL;
}
return Py_BuildValue("i",ctrl.value);
Expand Down

0 comments on commit dc09a8c

Please sign in to comment.