]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Removed init_gpio variable since it serves no function
authorc vw <dl1ycf@darc.de>
Tue, 20 Jul 2021 15:39:11 +0000 (17:39 +0200)
committerc vw <dl1ycf@darc.de>
Tue, 20 Jul 2021 15:39:11 +0000 (17:39 +0200)
radio.c

diff --git a/radio.c b/radio.c
index d33f99a4d53a81f5cdb8699155b06067e7f7ce51..69ca71b6d2706da8201d0e0350dc1d7766d8a9a2 100644 (file)
--- a/radio.c
+++ b/radio.c
@@ -602,24 +602,11 @@ if(!radio_is_remote) {
   gtk_fixed_put(GTK_FIXED(fixed),audio_waterfall,0,VFO_HEIGHT+20);
 #endif
 
-  gboolean init_gpio=FALSE;
-#ifdef LOCALCW
-  init_gpio=TRUE;
-#endif
-#ifdef PTT
-  init_gpio=TRUE;
-#endif
-#ifdef GPIO
-  init_gpio=TRUE;
-#endif
-
-  if(init_gpio) {
 #ifdef GPIO
     if(gpio_init()<0) {
       g_print("GPIO failed to initialize\n");
     }
 #endif
-  }
 
 #ifdef LOCALCW
   // init local keyer if enabled