Re: [PATCH V4 5/8] libgpiod: Add rust examples

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 27-07-22, 10:58, Kent Gibson wrote:
> On Fri, Jul 08, 2022 at 05:04:58PM +0530, Viresh Kumar wrote:
> > diff --git a/bindings/rust/examples/gpioset.rs b/bindings/rust/examples/gpioset.rs
> > +    let rconfig = RequestConfig::new().unwrap();
> > +    rconfig.set_consumer(&args[0]);
> > +    rconfig.set_offsets(&offsets);
> > +
> > +    chip.request_lines(&rconfig, &config).unwrap();
> 
> Wait rather than exiting immediately?

Wait for what exactly ?

> And, as mentioned elsewhere, add a gpiowatch example.

Will do, sure. Any existing example of the same will help though.

-- 
viresh



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux