Skip to content

Commit

Permalink
Fix startup if HAMLIB_KEYER selected and rig is off or disabled at start
Browse files Browse the repository at this point in the history
Otherwise TLF will abort unconditionally.
  • Loading branch information
dl1jbe committed Nov 21, 2023
1 parent e6e0c48 commit 6c74bad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ static void hamlib_init() {
exit(1);
}
trx_control = false;
no_trx_control = true;
showmsg("Disabling rig control!");
sleep(1);
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 6c74bad

Please sign in to comment.