From: c vw Date: Tue, 7 Aug 2018 13:39:56 +0000 (+0200) Subject: Do not activate CW vox while PTT is manually set. X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/status?a=commitdiff_plain;h=a80cc7620047876a6605cbf9fa92eb61ef2280e9;p=pihpsdr.git Do not activate CW vox while PTT is manually set. --- diff --git a/iambic.c b/iambic.c index 0f5bf47..e013605 100644 --- 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; }