From: pa3gsb <pa3gsb@gmail.com>
Date: Sat, 22 Feb 2020 13:11:13 +0000 (+0100)
Subject: no controller but using cw also gpio_init must be performed
X-Git-Url: https://git.rkrishnan.org/components/%22file://%22%3C?a=commitdiff_plain;h=0e5e2e2a97983d2ebde7733baa2fb62bebb0f360;p=pihpsdr.git

no controller but using cw also gpio_init must be performed
---

diff --git a/radio.c b/radio.c
index c84779f..8c08ee6 100644
--- a/radio.c
+++ b/radio.c
@@ -1013,11 +1013,9 @@ void start_radio() {
 #endif
   
 #ifdef GPIO
-  if(controller!=NO_CONTROLLER) {
     if(gpio_init()<0) {
       g_print("GPIO failed to initialize\n");
     }
-  }
 #endif
 #ifdef LOCALCW
   // init local keyer if enabled