Re: libgpiod: Using the -a option in v1.6.x

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

 



On Wed, Jan 18, 2023 at 2:44 PM Fabio Estevam <festevam@xxxxxxxxx> wrote:
>
> Hi Bartosz,
>
> On master, there is a useful -a option for gpioget:
>
> --as-is - leave the line direction unchanged, not forced to input
>
> I am running libgpiod v1.6.3, which does not contain such an option.
>
> Backporting this feature to v1.6.x did not seem trivial.
>
> Would you have any suggestions as to how to add this option to v1.6.x?

Nevermind. I changed the libgpiod OE recipe to use master instead of
1.6.3 and now I can read
the output correctly using the -a option:

# gpioget --version
gpioget (libgpiod) v2.0-devel
Copyright (C) 2017-2018 Bartosz Golaszewski
License: GPL-2.0-or-later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

# gpioset --hold-period 20ms -t0 -c 2 16=1
# gpioget --numeric -a -c 2 16
1



[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