mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 18:37:18 +00:00
Allow for bad ID from DDUtil in TS-2000 mode
This commit is contained in:
parent
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));
|
||||
if (retval < 0) {
|
||||
if (retry_read++ < rig->caps->retry)
|
||||
@ -566,6 +566,11 @@ int kenwood_open(RIG *rig)
|
||||
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 */
|
||||
idptr = &id[2];
|
||||
if (*idptr == ' ')
|
||||
|
Loading…
Reference in New Issue
Block a user