From 20137950258a7c61e39d05bdd598d89a79b7c63d Mon Sep 17 00:00:00 2001 From: Felix Collins Date: Fri, 19 Sep 2025 11:15:35 +1200 Subject: [PATCH] Added to documentation to warn against problem with libgpiod 1.0 and lower. --- Documentation/gpio-linux-libgpiod.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/gpio-linux-libgpiod.md b/Documentation/gpio-linux-libgpiod.md index 8af7a6a112..f7712ebfbf 100644 --- a/Documentation/gpio-linux-libgpiod.md +++ b/Documentation/gpio-linux-libgpiod.md @@ -40,15 +40,19 @@ for (int i = 0; i < 5; i++) ## libgpiod version support -Currently (12/23) dotnet-iot supports v0, v1 and v2 of libgpiod. +Dotnet-iot supports v0, v1 and v2 of libgpiod. The following table shows which driver supports which library version | LibGpiodDriverVersion | Libgpiod version (documented) | | --------------------- | ----------------------------- | -| V1 | 0.x to 1.x | +| V1 | 0.x to 1.0.x (Partial support) 1.1 - 1.x (Supported)| | V2 | 2.x | +NOTE: Due to a [breaking change in the values of enums in the libgpiod]( +https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/commit/?id=783ff2e3c70788cdd1c65cba9ee0398bda5ebcda), only libgpiod versions 1.1 and later can be expected to function reliably with the V1 driver. +To check what libgpiod packages you have on a deb based system, use: ``` $apt show libgpiod* ``` + ## Choose LibGpiodDriver Version If you want to explicitly select the version of the libgpiod driver, to target a specific library version, there are following options: