Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set timeout for Hamlib comms to avoid GUI getting stuck. #745

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions USER_MANUAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ LDPC | Low Density Parity Check Codes - a family of powerful FEC codes

1. Bugfixes:
* Fix bug preventing saving of the previously used path when playing back files. (PR #729)
* Set timeout for Hamlib comms to avoid GUI getting stuck. (PR #746)
2. Enhancements:
* Show green line indicating RX frequency. (PR #725)
* Update configuration of the Voice Keyer feature based on user feedback. (PR #730)
Expand Down
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
Loading