]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
oops.
authorDL1YCF <dl1ycf@darc.de>
Sun, 26 Apr 2020 17:06:15 +0000 (19:06 +0200)
committerDL1YCF <dl1ycf@darc.de>
Sun, 26 Apr 2020 17:06:15 +0000 (19:06 +0200)
radio.c

diff --git a/radio.c b/radio.c
index a945efbf769640bf7a0268a456c723d9e0ac506e..e4f221769d3d8d75022f67688f1638fa26ec7403 100644 (file)
--- a/radio.c
+++ b/radio.c
@@ -753,12 +753,14 @@ void start_radio() {
                    mac,
                    iface);
       break;
-    case SOAPSDR_PROTOCOL:
+#ifdef SOAPYSDR
+    case SOAPYSDR_PROTOCOL:
       sprintf(text,"piHPSDR: %s (%s %s",
                    radio->name,
                    p,
                    version);
       break;
+#endif
   }
 
   gtk_window_set_title (GTK_WINDOW (top_window), text);
@@ -1757,9 +1759,11 @@ void set_attenuation(int value) {
       case NEW_PROTOCOL:
         schedule_high_priority();
         break;
+#ifdef SOAPYSDR
       case SOAPYSDR_PROTOCOL:
         soapy_protocol_set_gain(active_receiver,value * 1.0);
         break;
+#endif
     }
 }