mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 18:37:18 +00:00
Expire cache in set_ptt before get_ptt to ensure we read the real ptt status
https://github.com/Hamlib/Hamlib/issues/587
This commit is contained in:
parent
709f281005
commit
b9afd75110
@ -2546,6 +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
|
||||
elapsed_ms(&rig->state.cache.time_ptt, HAMLIB_ELAPSED_INVALIDATE);
|
||||
|
||||
tptt = -1;
|
||||
// IC-9700 is failing on get_ptt right after set_ptt in split mode
|
||||
retcode = rig_get_ptt(rig, vfo, &tptt);
|
||||
|
Loading…
Reference in New Issue
Block a user