diff --git a/src/rig.c b/src/rig.c index 163274afa..c869dc1bf 100644 --- a/src/rig.c +++ b/src/rig.c @@ -2641,6 +2641,7 @@ int HAMLIB_API rig_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) if (retcode != RIG_OK) { RETURNFUNC(retcode); } +#if 0 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 @@ -2656,8 +2657,10 @@ int HAMLIB_API rig_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) rigerror(retcode)); retcode = RIG_OK; // fake the retcode so we retry } - if (tptt != ptt) { rig_debug(RIG_DEBUG_WARN, "%s: failed, retry=%d\n", __func__, retry); } +#else + tptt = ptt; +#endif } while (tptt != ptt && retry-- > 0 && retcode == RIG_OK); } @@ -2685,9 +2688,13 @@ int HAMLIB_API rig_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) if (retcode != RIG_OK) { RETURNFUNC(retcode); } +#if 0 retcode = rig_get_ptt(rig, vfo, &tptt); if (tptt != ptt) { rig_debug(RIG_DEBUG_WARN, "%s: failed, retry=%d\n", __func__, retry); } +#else + tptt = ptt; +#endif } while (tptt != ptt && retry-- > 0 && retcode == RIG_OK);