From: c vw Date: Tue, 26 May 2020 17:16:26 +0000 (+0200) Subject: Re-calculate drive level if TX band has possibly changed. X-Git-Url: https://git.rkrishnan.org/pf/content/reliability?a=commitdiff_plain;h=1afbc29dc2e8c6efd115b19bb64ff1bb78c628d5;p=pihpsdr.git Re-calculate drive level if TX band has possibly changed. --- diff --git a/ext.c b/ext.c index 56b107e..ee1c92b 100644 --- a/ext.c +++ b/ext.c @@ -577,6 +577,7 @@ int ext_set_split(void *data) { split=GPOINTER_TO_INT(data), tx_set_mode(transmitter,get_tx_mode()); set_alex_tx_antenna(); + calcDriveLevel(); g_idle_add(ext_vfo_update, NULL); } return 0; @@ -587,6 +588,7 @@ int ext_split_toggle(void *data) { split=split==1?0:1; tx_set_mode(transmitter,get_tx_mode()); set_alex_tx_antenna(); + calcDriveLevel(); g_idle_add(ext_vfo_update, NULL); } return 0; diff --git a/receiver.c b/receiver.c index e2a74b6..898f43b 100644 --- a/receiver.c +++ b/receiver.c @@ -96,8 +96,10 @@ void receiver_set_active(RECEIVER *rx) { g_idle_add(sliders_active_receiver_changed,NULL); // setup the transmitter mode and filter if(can_transmit) { + // TX band has possibly changed tx_set_mode(transmitter,get_tx_mode()); set_alex_tx_antenna(); + calcDriveLevel(); } }