Add a 50ms sleep between set_ptt and get_ptt -- give the relays a chance

https://github.com/Hamlib/Hamlib/issues/587
pull/649/head
Michael Black W9MDB 2021-03-06 09:08:13 -06:00
rodzic 678f01d79d
commit 3aac60b5df
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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;