From: Ramakrishnan Muthukrishnan <ram@leastauthority.com>
Date: Thu, 24 Feb 2022 14:05:10 +0000 (+0530)
Subject: enable only one copy of gpio_cw_sidetone_* functions
X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/about/module-simplejson-index.html?a=commitdiff_plain;h=bcce6c11dae372105171c09a0ff8d23b287f9fde;p=pihpsdr.git

enable only one copy of gpio_cw_sidetone_* functions
---

diff --git a/gpio.c b/gpio.c
index 9ae5822..fef0f2a 100644
--- 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