]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Re-calculate drive level if TX band has possibly changed.
authorc vw <dl1ycf@darc.de>
Tue, 26 May 2020 17:16:26 +0000 (19:16 +0200)
committerc vw <dl1ycf@darc.de>
Tue, 26 May 2020 17:16:26 +0000 (19:16 +0200)
ext.c
receiver.c

diff --git a/ext.c b/ext.c
index 56b107efc6af85af5dc6185d17cf17d1fc96852c..ee1c92b2a4d3b1e4493c60d7d0facd2f827444b7 100644 (file)
--- 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;
index e2a74b6ebd313938ded4db35a900602999ff33b2..898f43b6b775ee21e91681a422150c970f2a83ce 100644 (file)
@@ -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();
   }
 }