Make Origin width timeout behave better

pull/1568/head
Mike Black W9MDB 2024-06-12 15:32:21 -05:00
rodzic db73ef20e5
commit d160c62064
2 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -694,6 +694,7 @@ int tt565_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
char ttmode, ttreceiver;
int retry;
int timeout;
int widthOld = rig->state.cache.widthMainA;
struct rig_state *rs = STATE(rig);
ttreceiver = which_receiver(rig, vfo);
@ -739,8 +740,6 @@ int tt565_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
return -RIG_EPROTO;
}
/* Orion may need some time to "recover" from ?RxM before ?RxF */
hl_usleep(100*1000); // was 80, now 100 -- still seeing infrequent failure
/* Query passband width (filter) */
// since this fails at 80ms sometimes we won't retry and will reduce the timeout
// Normally this comes back in about 30ms
@ -756,7 +755,9 @@ int tt565_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
if (retval != RIG_OK)
{
return retval;
// if the width call fails we will just reuse the old width
*width = widthOld;
return RIG_OK;
}
if (respbuf[1] != 'R' || respbuf[3] != 'F' || resp_len <= 4)

Wyświetl plik

@ -36,7 +36,7 @@
#include "rig.h"
#include "riglist.h"
#define BACKEND_VER "20240606"
#define BACKEND_VER "20240612"
#define TRUE 1
#define FALSE 0