]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Client/Server: set RECEIVERS=2
authorc vw <dl1ycf@darc.de>
Mon, 6 Dec 2021 14:17:27 +0000 (15:17 +0100)
committerc vw <dl1ycf@darc.de>
Mon, 6 Dec 2021 14:17:27 +0000 (15:17 +0100)
radio.c

diff --git a/radio.c b/radio.c
index 6e39299d2e68cd2b6e072d766d7096802e678bbf..6660b042b1b878a473995817b3717a9da4d0d2b4 100644 (file)
--- a/radio.c
+++ b/radio.c
@@ -2750,12 +2750,15 @@ int remote_start(void *data) {
   display_sliders=1;
   display_toolbar=1;
 #endif
+  RECEIVERS=2;
   radioRestoreState();
   create_visual();
-  if(transmitter->local_microphone) {
-    if(audio_open_input()!=0) {
-      g_print("audio_open_input failed\n");
-      transmitter->local_microphone=0;
+  if (can_transmit) {
+    if(transmitter->local_microphone) {
+      if(audio_open_input()!=0) {
+        g_print("audio_open_input failed\n");
+        transmitter->local_microphone=0;
+      }
     }
   }
   for(int i=0;i<receivers;i++) {