From 6c74bad0421bdcd7cb60ff5a47f8c3617152c741 Mon Sep 17 00:00:00 2001 From: Thomas Beierlein Date: Tue, 21 Nov 2023 14:35:39 +0100 Subject: [PATCH] Fix startup if HAMLIB_KEYER selected and rig is off or disabled at start Otherwise TLF will abort unconditionally. --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.c b/src/main.c index 95a4d76e..4bd59aef 100644 --- a/src/main.c +++ b/src/main.c @@ -780,6 +780,7 @@ static void hamlib_init() { exit(1); } trx_control = false; + no_trx_control = true; showmsg("Disabling rig control!"); sleep(1); } @@ -872,6 +873,10 @@ static void keyer_init() { if (cwkeyer == HAMLIB_KEYER) { showmsg("CW-Keyer is Hamlib"); + if (no_trx_control) { + showmsg("Radio control disabled - no keying!"); + return; + } if (!trx_control) { showmsg("Radio control is not activated!!"); sleep(1);