From: John Melton G0ORX <john.d.melton@googlemail.com>
Date: Wed, 20 May 2020 13:06:49 +0000 (+0100)
Subject: Fixed reference ENABLE_CW_BUTTNS AND ENABLE_GPIO_SIDETONE when LOCALCW not defined
X-Git-Url: https://git.rkrishnan.org/components/frontends/rgr-080307.php?a=commitdiff_plain;h=9a473427badd8c94ce8ac0dcb0524cfa6a4a20ab;p=pihpsdr.git

Fixed reference ENABLE_CW_BUTTNS AND ENABLE_GPIO_SIDETONE when LOCALCW not defined
---

diff --git a/gpio.c b/gpio.c
index d6d22d6..4a48aad 100644
--- a/gpio.c
+++ b/gpio.c
@@ -1330,6 +1330,7 @@ void gpio_restore_state() {
  
   }
 
+#ifdef LOCALCW
   if(controller==CONTROLLER2_V2) {
     //
     // In Controller2 V2, no 'free' GPIO pins
@@ -1339,6 +1340,7 @@ void gpio_restore_state() {
     ENABLE_CW_BUTTONS=0;
     ENABLE_GPIO_SIDETONE=0;
   }
+#endif
 
 
 }