Expire cache in set_ptt before get_ptt to ensure we read the real ptt status

https://github.com/Hamlib/Hamlib/issues/587
pull/649/head
Michael Black W9MDB 2021-03-06 08:47:00 -06:00
rodzic 709f281005
commit b9afd75110
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

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