Skip to content

Commit

Permalink
Set timeout for Hamlib comms to avoid GUI getting stuck.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw committed Sep 2, 2024
1 parent 9ecbcb0 commit ae39349
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rig_control/HamlibRigController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ void HamlibRigController::connectImpl_()
break;
}

rig_set_conf(rig_, rig_token_lookup(rig_, "timeout"), "1000");
rig_set_conf(rig_, rig_token_lookup(rig_, "retry"), "1");
rig_set_conf(rig_, rig_token_lookup(rig_, "timeout_retry"), "1");

auto result = rig_open(rig_);
if (result == RIG_OK)
{
Expand Down

0 comments on commit ae39349

Please sign in to comment.