From 336135b99fa24dd29b55db7186917cade593f864 Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Thu, 15 Dec 2022 18:11:11 +0100
Subject: [PATCH] Some small changes forgotten to commit with the other commits

---
 ps_menu.c    | 5 ++++-
 radio_menu.c | 2 +-
 xvtr_menu.c  | 5 +++++
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ps_menu.c b/ps_menu.c
index 2390843..108e660 100644
--- a/ps_menu.c
+++ b/ps_menu.c
@@ -314,7 +314,10 @@ static void ps_ant_cb(GtkWidget *widget, gpointer data) {
 }
 
 static void enable_cb(GtkWidget *widget, gpointer data) {
-  g_idle_add(ext_tx_set_ps,GINT_TO_POINTER(gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget))));
+  //g_idle_add(ext_tx_set_ps,GINT_TO_POINTER(gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget))));
+  if (can_transmit) {
+    tx_set_ps(transmitter, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)));
+  }
 }
 
 static void auto_cb(GtkWidget *widget, gpointer data) {
diff --git a/radio_menu.c b/radio_menu.c
index 86964de..419260d 100644
--- a/radio_menu.c
+++ b/radio_menu.c
@@ -225,7 +225,7 @@ static void hl2audio_cb(GtkWidget *widget, gpointer data) {
 
 static void split_cb(GtkWidget *widget, gpointer data) {
   int new=gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
-  if (new != split) g_idle_add(ext_split_toggle, NULL);
+  radio_set_split(new);
 }
 
 //
diff --git a/xvtr_menu.c b/xvtr_menu.c
index a370b5a..fc5dac7 100644
--- a/xvtr_menu.c
+++ b/xvtr_menu.c
@@ -87,6 +87,11 @@ static void save_xvtr () {
 }
 
 void update_receiver(int band,gboolean error) {
+  //
+  // TODO: find out what this is *exactly* doing, and try
+  //       to use receiver_frequency_change() instead of
+  //       frequency_changed()
+  //
   RECEIVER *rx=active_receiver;
   gboolean saved_ctun;
 //g_print("update_receiver: band=%d error=%d\n",band,error);
-- 
2.45.2