Skip to content

Commit

Permalink
controls: fix regressed doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnurou committed Dec 25, 2023
1 parent 860ad00 commit f29852b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/controls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
//! # use v4l2r::controls::user::Contrast;
//! # use v4l2r::device::Device;
//! # use v4l2r::ioctl::s_ext_ctrls;
//! # use v4l2r::ioctl::CtrlWhich;
//! #
//! # let device = Device::open(Path::new("/dev/video0"), Default::default()).unwrap();
//! #
Expand All @@ -45,7 +46,7 @@
//! contrast: SafeExtControl::<Contrast>::from_value(128),
//! };
//!
//! s_ext_ctrls(&device, None, &mut controls).unwrap();
//! s_ext_ctrls(&device, CtrlWhich::Current, &mut controls).unwrap();
//! assert_eq!(controls.brightness.value(), 128);
//! assert_eq!(controls.contrast.value(), 128);
//! ```
Expand Down

0 comments on commit f29852b

Please sign in to comment.