From: c vw <dl1ycf@darc.de>
Date: Thu, 22 Jul 2021 18:13:49 +0000 (+0200)
Subject: made compatible with older gpiod libs
X-Git-Url: https://git.rkrishnan.org/pf/content/%22file:/status?a=commitdiff_plain;h=906bf5a73eed6a91d933b3adefe7faa1960b0689;p=pihpsdr.git

made compatible with older gpiod libs
---

diff --git a/gpio.c b/gpio.c
index f4cfbd1..a61244e 100644
--- a/gpio.c
+++ b/gpio.c
@@ -1088,6 +1088,10 @@ void gpio_cw_sidetone_set(int level) {
   int rc;
   if (ENABLE_GPIO_SIDETONE) {
 #ifdef GPIO
+    //
+    // changed from gpiod_ctxless_set_value_ext to gpiod_ctxless_set_value,
+    // so it works with older gpiod libs
+    //
     if((rc=gpiod_ctxless_set_value(gpio_device,SIDETONE_GPIO,level,FALSE,consumer,NULL,NULL))<0) {
       g_print("%s: err=%d\n",__FUNCTION__,rc);
     }