Make simulator match the Real World(TM)

Add missing P4
Repair RIG_LEVEL_STRENGTH
pull/1498/head
George Baltz N3GB 2024-01-31 12:37:14 -05:00
rodzic 4fe6ea7cc4
commit 35e49ffdfc
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -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;
} }

Wyświetl plik

@ -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;
} }