From: John Melton G0ORX Date: Sun, 6 Oct 2019 12:54:30 +0000 (+0100) Subject: changed order of soapy tx init X-Git-Url: https://git.rkrishnan.org/Site/listings/$sch_link?a=commitdiff_plain;h=1c61d76c173d77b29b780439afcb11e7ad2f5216;p=pihpsdr.git changed order of soapy tx init --- diff --git a/radio.c b/radio.c index a1bcb3c..affa912 100644 --- a/radio.c +++ b/radio.c @@ -887,6 +887,11 @@ void start_radio() { soapy_protocol_create_receiver(rx); if(transmitter!=NULL) { soapy_protocol_create_transmitter(transmitter); + soapy_protocol_set_tx_antenna(transmitter,dac[0].antenna); + for(int i=0;iinfo.soapy.tx_gains;i++) { + soapy_protocol_set_tx_gain(transmitter,radio->info.soapy.tx_gain[i],dac[0].tx_gain[i]); + } + soapy_protocol_set_tx_frequency(transmitter); } soapy_protocol_set_rx_antenna(rx,adc[0].antenna); @@ -904,12 +909,6 @@ void start_radio() { } soapy_protocol_start_receiver(rx); - if(transmitter!=NULL) { - soapy_protocol_set_tx_antenna(transmitter,dac[0].antenna); - for(int i=0;iinfo.soapy.tx_gains;i++) { - soapy_protocol_set_tx_gain(transmitter,radio->info.soapy.tx_gain[i],dac[0].tx_gain[i]); - } - } } #endif