projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aefe41
)
enable only one copy of gpio_cw_sidetone_* functions
author
Ramakrishnan Muthukrishnan
<ram@leastauthority.com>
Thu, 24 Feb 2022 14:05:10 +0000
(19:35 +0530)
committer
Ramakrishnan Muthukrishnan
<ram@leastauthority.com>
Thu, 24 Feb 2022 14:05:10 +0000
(19:35 +0530)
gpio.c
patch
|
blob
|
history
diff --git
a/gpio.c
b/gpio.c
index 9ae58223375eb56d15d34dd4fee9d03855f88ba6..fef0f2a008dc4ce02c9f6ea649780fad515da8ae 100644
(file)
--- a/
gpio.c
+++ b/
gpio.c
@@
-1126,6
+1126,7
@@
void gpio_close() {
}
#ifdef LOCALCW
+#ifdef GPIO
void gpio_cw_sidetone_set(int level) {
int rc;
if (ENABLE_GPIO_SIDETONE) {
@@
-1144,5
+1145,5
@@
void gpio_cw_sidetone_set(int level) {
int gpio_cw_sidetone_enabled() {
return ENABLE_GPIO_SIDETONE;
}
-
+#endif
#endif