]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
fixed protocol init bug
authorJohn Melton G0ORX <john.d.melton@googlemail.com>
Sun, 26 Jul 2020 06:57:24 +0000 (07:57 +0100)
committerJohn Melton G0ORX <john.d.melton@googlemail.com>
Sun, 26 Jul 2020 06:57:24 +0000 (07:57 +0100)
radio.c

diff --git a/radio.c b/radio.c
index 1047c0030cea671e376ea866033a86b3f713d2c1..62bba24385dfa090816c242b6f3976862a87808a 100644 (file)
--- a/radio.c
+++ b/radio.c
@@ -603,7 +603,6 @@ if(!radio_is_remote) {
   }
 #endif
   
-/*
 #ifdef CLIENT_SERVER
   if(!radio_is_remote) {
 #endif
@@ -623,7 +622,6 @@ if(!radio_is_remote) {
 #ifdef CLIENT_SERVER
   }
 #endif
-*/
 
   if(display_zoompan) {
     zoompan = zoompan_init(display_width,ZOOMPAN_HEIGHT);
@@ -662,27 +660,6 @@ g_print("create_visual: calling radio_change_receivers: receivers=%d r=%d\n",rec
   //gtk_widget_show_all (fixed);
   gtk_widget_show_all (top_window);
 
-
-#ifdef CLIENT_SERVER
-  if(!radio_is_remote) {
-#endif
-  switch(protocol) {
-    case ORIGINAL_PROTOCOL:
-      old_protocol_init(0,display_width,receiver[0]->sample_rate);
-      break;
-    case NEW_PROTOCOL:
-      new_protocol_init(display_width);
-      break;
-#ifdef SOAPYSDR
-    case SOAPYSDR_PROTOCOL:
-      soapy_protocol_init(0,false);
-      break;
-#endif
-  }
-#ifdef CLIENT_SERVER
-  }
-#endif
-
 }
   
 void start_radio() {