]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
enable only one copy of gpio_cw_sidetone_* functions
authorRamakrishnan Muthukrishnan <ram@leastauthority.com>
Thu, 24 Feb 2022 14:05:10 +0000 (19:35 +0530)
committerRamakrishnan Muthukrishnan <ram@leastauthority.com>
Thu, 24 Feb 2022 14:05:10 +0000 (19:35 +0530)
gpio.c

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