kopia lustrzana https://github.com/Hamlib/Hamlib
Merge branch 'master' into upstream-817
commit
1a37c569fa
|
@ -2256,7 +2256,7 @@ static int icom_get_mode_x26(RIG *rig, vfo_t vfo, int *mode_len,
|
|||
const struct icom_priv_caps *priv_caps = rig->caps->priv;
|
||||
int retval;
|
||||
|
||||
if (priv->x26cmdfails != 0 && priv_caps->x25x26_always==0)
|
||||
if (priv->x26cmdfails > 0 && priv_caps->x25x26_always==0)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_WARN, "%s: x26cmdfails=%d, x25x26_always=%d\n", __func__, priv->x26cmdfails, priv_caps->x25x26_always);
|
||||
return -RIG_ENAVAIL;
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#define BACKEND_VER "20240725"
|
||||
#define BACKEND_VER "20240726"
|
||||
|
||||
#define ICOM_IS_ID31 rig_is_model(rig, RIG_MODEL_ID31)
|
||||
#define ICOM_IS_ID51 rig_is_model(rig, RIG_MODEL_ID51)
|
||||
|
|
|
@ -310,7 +310,7 @@ struct rig_caps ft817_caps =
|
|||
RIG_MODEL(RIG_MODEL_FT817),
|
||||
.model_name = "FT-817",
|
||||
.mfg_name = "Yaesu",
|
||||
.version = "20240728.1",
|
||||
.version = "20240728.3",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -1202,6 +1202,7 @@ static int ft817_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt)
|
|||
|
||||
*ptt = p->tx_status != 0xff;
|
||||
|
||||
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
|
@ -1234,7 +1235,8 @@ static int ft817_get_tx_level(RIG *rig, value_t *val, unsigned char *tx_level,
|
|||
|
||||
if (ptt == RIG_PTT_OFF)
|
||||
{
|
||||
val->f = p->swr;
|
||||
|
||||
val->f = p->swr;
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
|
@ -1247,6 +1249,7 @@ static int ft817_get_tx_level(RIG *rig, value_t *val, unsigned char *tx_level,
|
|||
}
|
||||
|
||||
p->swr = val->f = rig_raw2val_float(*tx_level, cal);
|
||||
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: level %f\n", __func__, val->f);
|
||||
|
||||
return RIG_OK;
|
||||
|
|
|
@ -25,6 +25,7 @@ struct ip_mreq
|
|||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#undef ECHO
|
||||
|
||||
#define BUFSIZE 256
|
||||
#define X25
|
||||
|
@ -61,7 +62,7 @@ void dumphex(const unsigned char *buf, int n)
|
|||
int
|
||||
frameGet(int fd, unsigned char *buf)
|
||||
{
|
||||
int i = 0, n;
|
||||
int i = 0;
|
||||
memset(buf, 0, BUFSIZE);
|
||||
unsigned char c;
|
||||
|
||||
|
@ -77,10 +78,10 @@ again:
|
|||
char mytime[256];
|
||||
date_strget(mytime, sizeof(mytime), 1);
|
||||
printf("%s:", mytime); dumphex(buf, i);
|
||||
#ifdef ECHO
|
||||
// echo
|
||||
n = write(fd, buf, i);
|
||||
|
||||
if (n != i) { printf("%s: error on write: %s\n", __func__, strerror(errno)); }
|
||||
#endif
|
||||
|
||||
return i;
|
||||
}
|
||||
|
@ -146,6 +147,13 @@ void frameParse(int fd, unsigned char *frame, int len)
|
|||
|
||||
if (powerstat)
|
||||
{
|
||||
unsigned char frame2[11];
|
||||
memcpy(frame2,frame,11);
|
||||
frame2[2] = 0xe1;
|
||||
frame2[3] = 0x88;
|
||||
dump_hex(frame2,11);
|
||||
n = write(fd, frame2, 11);
|
||||
dump_hex(frame,11);
|
||||
n = write(fd, frame, 11);
|
||||
}
|
||||
|
||||
|
@ -223,8 +231,9 @@ void frameParse(int fd, unsigned char *frame, int len)
|
|||
if (frame[5] == 0xfd)
|
||||
{
|
||||
printf("get split %d\n", 1);
|
||||
frame[7] = 0xfd;
|
||||
n = write(fd, frame, 8);
|
||||
frame[5] = split;
|
||||
frame[6] = 0xfd;
|
||||
n = write(fd, frame, 7);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue