]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
rigctl: act on PTT via CAT only if VOX is disabled
authorRamakrishnan Muthukrishnan <ram@leastauthority.com>
Fri, 25 Feb 2022 13:01:12 +0000 (18:31 +0530)
committerRamakrishnan Muthukrishnan <ram@leastauthority.com>
Fri, 25 Feb 2022 13:01:12 +0000 (18:31 +0530)
If vox is ON and PTT is sent via CAT, the PTT cat command would be
ignored.

rigctl.c

index 72d45e14f2c182abce8da92ffa730f824e1fc07c..7a12457bf3a542f358ad309675929286a1885a70 100644 (file)
--- a/rigctl.c
+++ b/rigctl.c
@@ -3924,9 +3924,11 @@ int parse_cmd(void *data) {
       implemented = FALSE;
       break;
     case 'X': // TX
-      // set transceiver to TX mode
+      // set transceiver to TX mode if VOX is not enabled
       if (command[2] == ';') {
-        mox_update(1);
+          if (vox_enabled == 0) {
+              mox_update(1);
+          }
       }
       break;
     case 'Y': // TY