From: c vw <dl1ycf@darc.de>
Date: Thu, 25 Nov 2021 17:41:20 +0000 (+0100)
Subject: fixed silly typo introduced when merging.
X-Git-Url: https://git.rkrishnan.org/components/%22news.html/%22file://%22%22.?a=commitdiff_plain;h=ec59cd243224b81bf59efb67693e74f2763d85e6;p=pihpsdr.git

fixed silly typo introduced when merging.
---

diff --git a/gpio.h b/gpio.h
index 04598af..c7e8929 100644
--- a/gpio.h
+++ b/gpio.h
@@ -79,7 +79,7 @@ extern void gpio_save_state();
 extern void gpio_save_actions();
 extern int gpio_init();
 extern void gpio_close();
-extern void do_switch_action(enum ACTION action, enum ACTION_MODE mode)
+extern void do_switch_action();
 extern unsigned int millis(); // to allow debouncing in i2c.c 
 
 #ifdef LOCALCW
diff --git a/toolbar.c b/toolbar.c
index 933f603..467deab 100644
--- a/toolbar.c
+++ b/toolbar.c
@@ -113,6 +113,23 @@ void update_toolbar_labels() {
   gtk_button_set_label(GTK_BUTTON(sim_function),ActionTable[toolbar_switches[7].switch_function].button_str);
 }
 
+void mox_update(int state) {
+//fprintf(stderr,"mox_update: state=%d\n",state);
+  if(getTune()==1) {
+    setTune(0);
+  }
+  if(state) {
+    if(canTransmit() || tx_out_of_band) {
+      setMox(state);
+    } else {
+      transmitter_set_out_of_band(transmitter);
+    }
+  } else {
+    setMox(state);
+  }
+  g_idle_add(ext_vfo_update,NULL);
+}
+
 void tune_update(int state) {
   if(getMox()==1) {
     setMox(0);