]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
fixed noise burst switching from tx to rx
authorJohn Melton - G0ORX/N6LYT <john.d.melton@googlemail.com>
Mon, 14 Nov 2016 08:59:07 +0000 (08:59 +0000)
committerJohn Melton - G0ORX/N6LYT <john.d.melton@googlemail.com>
Mon, 14 Nov 2016 08:59:07 +0000 (08:59 +0000)
pihpsdr
radio.c
release/pihpsdr.tar
release/pihpsdr/pihpsdr

diff --git a/pihpsdr b/pihpsdr
index b8c4ae25c9b5b9361621b5b16486db2e825b8285..0589e56056509ff75a0d8e878837017ee11391e0 100755 (executable)
Binary files a/pihpsdr and b/pihpsdr differ
diff --git a/radio.c b/radio.c
index d1890aed6128e262255557f5ac573c7596a384e1..f556fcfa220a2a18dc993d38b65526fcba50f193 100644 (file)
--- a/radio.c
+++ b/radio.c
@@ -229,6 +229,28 @@ int getSampleRate() {
 
 void setMox(int state) {
   if(mox!=state) {
+    if(state) {
+      // switch to tx
+      SetChannelState(CHANNEL_RX0,0,1);
+      mox=state;
+      if(protocol==NEW_PROTOCOL) {
+        schedule_high_priority(3);
+      }
+      SetChannelState(CHANNEL_TX,1,0);
+#ifdef FREEDV
+      if(mode==modeFREEDV) {
+        freedv_reset_tx_text_index();
+      }
+#endif
+    } else {
+      SetChannelState(CHANNEL_TX,0,1);
+      mox=state;
+      if(protocol==NEW_PROTOCOL) {
+        schedule_high_priority(3);
+      }
+      SetChannelState(CHANNEL_RX0,1,0);
+    }
+/*
     mox=state;
     if(protocol==NEW_PROTOCOL) {
       schedule_high_priority(3);
@@ -245,6 +267,7 @@ void setMox(int state) {
       SetChannelState(CHANNEL_TX,0,1);
       SetChannelState(CHANNEL_RX0,1,0);
     }
+*/
   }
 }
 
index 025e29266f586e20129efb82bbce5d73179f8765..545d0a6bdbd1146272f6dc5b5ae811c93ed6270e 100644 (file)
Binary files a/release/pihpsdr.tar and b/release/pihpsdr.tar differ
index b8c4ae25c9b5b9361621b5b16486db2e825b8285..0589e56056509ff75a0d8e878837017ee11391e0 100755 (executable)
Binary files a/release/pihpsdr/pihpsdr and b/release/pihpsdr/pihpsdr differ