From 1afbc29dc2e8c6efd115b19bb64ff1bb78c628d5 Mon Sep 17 00:00:00 2001 From: c vw Date: Tue, 26 May 2020 19:16:26 +0200 Subject: [PATCH] Re-calculate drive level if TX band has possibly changed. --- ext.c | 2 ++ receiver.c | 2 ++ 2 files changed, 4 insertions(+) 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(); } } -- 2.45.2