From a373e89d1ff1c0d104a841e199000ff9e032eb37 Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Mon, 6 Jan 2020 10:49:52 +0100
Subject: [PATCH] stop/start old protcol when changing puresignal

---
 transmitter.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/transmitter.c b/transmitter.c
index e135bea..b98d98c 100644
--- a/transmitter.c
+++ b/transmitter.c
@@ -1289,6 +1289,10 @@ void tx_set_displaying(TRANSMITTER *tx,int state) {
 
 void tx_set_ps(TRANSMITTER *tx,int state) {
 #ifdef PURESIGNAL
+  if (protocol == ORIGINAL_PROTOCOL) {
+    old_protocol_stop();
+    usleep(100000);
+  }
   if(state) {
     tx->puresignal=1;
     SetPSControl(tx->id, 0, 0, 1, 0);
@@ -1302,6 +1306,9 @@ void tx_set_ps(TRANSMITTER *tx,int state) {
     schedule_high_priority();
     schedule_receive_specific();
   }
+  if (protocol == ORIGINAL_PROTOCOL) {
+    old_protocol_run();
+  }
   g_idle_add(ext_vfo_update,NULL);
 #endif
 }
-- 
2.45.2