projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e395db6
)
made compatible with older gpiod libs
author
c vw
<dl1ycf@darc.de>
Thu, 22 Jul 2021 18:13:49 +0000
(20:13 +0200)
committer
c vw
<dl1ycf@darc.de>
Thu, 22 Jul 2021 18:13:49 +0000
(20:13 +0200)
gpio.c
patch
|
blob
|
history
diff --git
a/gpio.c
b/gpio.c
index f4cfbd10528674277fe11016008e0f83c611d9f1..a61244ea72867d92c7f2a2e749a6e380d5ff216a 100644
(file)
--- 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);
}