kopia lustrzana https://github.com/Hamlib/Hamlib
Make simulator match the Real World(TM)
Add missing P4 Repair RIG_LEVEL_STRENGTHpull/1498/head
rodzic
4fe6ea7cc4
commit
35e49ffdfc
|
@ -312,18 +312,18 @@ int kenwood_ts890_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
/* Find out which meter type is in use */
|
/* Find out which meter type is in use */
|
||||||
retval = kenwood_safe_transaction(rig, "EX00011", ackbuf, sizeof(ackbuf), 10);
|
retval = kenwood_safe_transaction(rig, "EX00011", ackbuf, sizeof(ackbuf), 11);
|
||||||
|
|
||||||
if (retval != RIG_OK)
|
if (retval != RIG_OK)
|
||||||
{
|
{
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strncmp(ackbuf + 7, "000", 3) == 0)
|
if (strncmp(ackbuf + 8, "000", 3) == 0)
|
||||||
{
|
{
|
||||||
table = &meter_type1;
|
table = &meter_type1;
|
||||||
}
|
}
|
||||||
else if (strncmp(ackbuf + 7, "001", 3) == 0)
|
else if (strncmp(ackbuf + 8, "001", 3) == 0)
|
||||||
{
|
{
|
||||||
table = &meter_type2;
|
table = &meter_type2;
|
||||||
}
|
}
|
||||||
|
|
|
@ -262,7 +262,7 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
else if (strcmp(buf, "EX00011;") == 0)
|
else if (strcmp(buf, "EX00011;") == 0)
|
||||||
{
|
{
|
||||||
pbuf = "EX00011001;";
|
pbuf = "EX00011 001;";
|
||||||
write(fd, pbuf, strlen(pbuf));
|
write(fd, pbuf, strlen(pbuf));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue