kopia lustrzana https://github.com/Hamlib/Hamlib
Allow for bad ID from DDUtil in TS-2000 mode
rodzic
a70ca71753
commit
72f1e92be3
|
@ -264,7 +264,7 @@ int kenwood_transaction(RIG *rig, const char *cmdstr, char *data, size_t datasiz
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
len = min (datasize ? datasize : strlen (verify) + 5, KENWOOD_MAX_BUF_LEN);
|
len = min (datasize ? datasize : strlen (verify) + 7, KENWOOD_MAX_BUF_LEN);
|
||||||
retval = read_string(&rs->rigport, buffer, len, cmdtrm, strlen(cmdtrm));
|
retval = read_string(&rs->rigport, buffer, len, cmdtrm, strlen(cmdtrm));
|
||||||
if (retval < 0) {
|
if (retval < 0) {
|
||||||
if (retry_read++ < rig->caps->retry)
|
if (retry_read++ < rig->caps->retry)
|
||||||
|
@ -566,6 +566,11 @@ int kenwood_open(RIG *rig)
|
||||||
return -RIG_EPROTO;
|
return -RIG_EPROTO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!strcmp ("IDID900", id)) /* DDUtil in TS-2000 mode */
|
||||||
|
{
|
||||||
|
strcpy (id, "ID019"); /* fake it */
|
||||||
|
}
|
||||||
|
|
||||||
/* check for a white space and skip it */
|
/* check for a white space and skip it */
|
||||||
idptr = &id[2];
|
idptr = &id[2];
|
||||||
if (*idptr == ' ')
|
if (*idptr == ' ')
|
||||||
|
|
Ładowanie…
Reference in New Issue