]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Do not activate CW vox while PTT is manually set.
authorc vw <dl1ycf@darc.de>
Tue, 7 Aug 2018 13:39:56 +0000 (15:39 +0200)
committerc vw <dl1ycf@darc.de>
Tue, 7 Aug 2018 13:39:56 +0000 (15:39 +0200)
iambic.c

index 0f5bf4789184a76c310170fbdfe61ee10a1e51e4..e01360583a9671b77bcfa73ac99046167d38c985 100644 (file)
--- a/iambic.c
+++ b/iambic.c
@@ -164,8 +164,9 @@ void keyer_event(int gpio, int level) {
     if (state) {
         // This is for aborting CAT CW messages if the key is hit.
        cw_key_hit = 1;
-        // we do PTT as soon as possible ...
-        if (running && !cwvox) {
+        // we do PTT as soon as possible, but disable cwvox if
+       // PTT has been engaged manually
+        if (running && !cwvox && !mox) {
           g_idle_add(ext_mox_update, (gpointer)(long) 1);
            cwvox=(int) vox_hang;
        }