From 3aac60b5dfd18214f644a8a8e66a1d056e23451a Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Sat, 6 Mar 2021 09:08:13 -0600 Subject: [PATCH] Add a 50ms sleep between set_ptt and get_ptt -- give the relays a chance https://github.com/Hamlib/Hamlib/issues/587 --- src/rig.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rig.c b/src/rig.c index 64615b13c..fbd454c7c 100644 --- a/src/rig.c +++ b/src/rig.c @@ -2546,7 +2546,9 @@ int HAMLIB_API rig_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) if (retcode != RIG_OK) { RETURNFUNC(retcode); } - // don't use the cached value + hl_usleep(50*1000); // give PTT a chance to do it's thing + + // don't use the cached value and check to see if it worked elapsed_ms(&rig->state.cache.time_ptt, HAMLIB_ELAPSED_INVALIDATE); tptt = -1;