]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
reset PS while tuning
authorc vw <dl1ycf@darc.de>
Thu, 30 Jan 2020 17:22:28 +0000 (18:22 +0100)
committerc vw <dl1ycf@darc.de>
Thu, 30 Jan 2020 17:22:28 +0000 (18:22 +0100)
radio.c

diff --git a/radio.c b/radio.c
index 45dc928ef8d6d361eacc778d1f5e63105631aa4e..671a36448700fa4d793f4d8c3b7e91b86503e121 100644 (file)
--- a/radio.c
+++ b/radio.c
@@ -1381,6 +1381,13 @@ void setTune(int state) {
       mox=0;
     }
     if(state) {
+      if (transmitter->puresignal) {
+       //
+       //    Reset PS engine
+       //
+        SetPSControl(transmitter->id, 1, 0, 0, 0);
+       usleep(50000);
+      }
       if(full_tune) {
         if(OCfull_tune_time!=0) {
           struct timeval te;
@@ -1465,6 +1472,12 @@ void setTune(int state) {
           cw_keyer_internal=pre_tune_cw_internal;
           break;
       }
+      if (transmitter->puresignal) {
+       //
+       //    Resume PS
+       //
+       SetPSControl(transmitter->id, 0, 0, 1, 0);
+      }
     }
     tune=state;
   }