Skip to content

Commit 3224bbe

Browse files
committed
Merge branch 'AA5SH_823' into testing_0.47
2 parents f7d9f53 + bc04cf7 commit 3224bbe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

rotator/drivers/HamlibRotDrv.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,18 @@ bool HamlibRotDrv::open()
149149
return false;
150150
}
151151

152+
token_t timeout_token = rot_token_lookup(rot, "timeout");
153+
if (timeout_token != -RIG_EINVAL) {
154+
int ret = rot_set_conf(rot, timeout_token, "5000");
155+
if (ret == RIG_OK) {
156+
qCDebug(runtime) << "Rotator timeout set to 5000ms";
157+
} else {
158+
qCDebug(runtime) << "rot_set_conf(timeout) failed:" << rigerror(ret);
159+
}
160+
} else {
161+
qCDebug(runtime) << "timeout token not found";
162+
}
163+
152164
int status = rot_open(rot);
153165

154166
if ( !isRotRespOK(status, tr("Rot Open Error"), false) )

0 commit comments

Comments
 (0)