kopia lustrzana https://github.com/Hamlib/Hamlib
Expire cache in set_ptt before get_ptt to ensure we read the real ptt status
https://github.com/Hamlib/Hamlib/issues/587pull/649/head
rodzic
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); }
|
if (retcode != RIG_OK) { RETURNFUNC(retcode); }
|
||||||
|
|
||||||
|
// don't use the cached value
|
||||||
|
elapsed_ms(&rig->state.cache.time_ptt, HAMLIB_ELAPSED_INVALIDATE);
|
||||||
|
|
||||||
tptt = -1;
|
tptt = -1;
|
||||||
// IC-9700 is failing on get_ptt right after set_ptt in split mode
|
// IC-9700 is failing on get_ptt right after set_ptt in split mode
|
||||||
retcode = rig_get_ptt(rig, vfo, &tptt);
|
retcode = rig_get_ptt(rig, vfo, &tptt);
|
||||||
|
|
Ładowanie…
Reference in New Issue