Add 100ms sleep to kenwood.c after set_ptt OFF

In kenwood.c when ? reply is receive write the transaction again instead of just reading
https://github.com/Hamlib/Hamlib/issues/644
pull/649/head
Mike Black W9MDB 2021-04-02 16:36:46 -05:00
rodzic 02c985ce3d
commit 35d945e002
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -450,7 +450,7 @@ transaction_read:
{
rig_debug(RIG_DEBUG_ERR, "%s: Retrying shortly\n", __func__);
hl_usleep(rig->caps->timeout * 1000);
goto transaction_read;
goto transaction_write;
}
retval = -RIG_ERJCTED;
@ -3757,6 +3757,8 @@ int kenwood_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
int retval = kenwood_transaction(rig, ptt_cmd, NULL, 0);
if (ptt == RIG_PTT_OFF) hl_usleep(100*1000); // a little time for PTT to turn off
RETURNFUNC(retval);
}

Wyświetl plik

@ -28,7 +28,7 @@
#include "token.h"
#include "misc.h"
#define BACKEND_VER "20210328"
#define BACKEND_VER "20210402"
#define EOM_KEN ';'
#define EOM_TH '\r'