From f29852bd1477652dec3b1c099000fd2ecca851ba Mon Sep 17 00:00:00 2001 From: Alexandre Courbot Date: Mon, 25 Dec 2023 15:23:20 +0900 Subject: [PATCH] controls: fix regressed doctest --- lib/src/controls.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/controls.rs b/lib/src/controls.rs index 1b4e174..3be2ce4 100644 --- a/lib/src/controls.rs +++ b/lib/src/controls.rs @@ -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(); //! # @@ -45,7 +46,7 @@ //! contrast: SafeExtControl::::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); //! ```