From d3be68fdd34be27a10da93ed1da240d05006fedd Mon Sep 17 00:00:00 2001 From: c vw Date: Mon, 6 Dec 2021 15:17:27 +0100 Subject: [PATCH] Client/Server: set RECEIVERS=2 --- radio.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/radio.c b/radio.c index 6e39299..6660b04 100644 --- 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