Fix identifiers for MD-380 and MD-2017,
Add identifiers for Zastone D900, Zastone DP880 and Radtel RT-27D.
This commit is contained in:
parent
4ddc078bc1
commit
389ea79efb
9
radio.c
9
radio.c
@ -71,13 +71,16 @@ void radio_connect()
|
|||||||
const char *ident = dfu_init(0x0483, 0xdf11);
|
const char *ident = dfu_init(0x0483, 0xdf11);
|
||||||
fprintf(stderr, "Connect to %s.\n", ident);
|
fprintf(stderr, "Connect to %s.\n", ident);
|
||||||
|
|
||||||
if (strcasecmp(ident, "MD380") == 0) {
|
if (strcasecmp(ident, "DR780") == 0 || // TYT MD-380, Retevis RT3, RT8
|
||||||
|
strcasecmp(ident, "ZD3688") == 0 || // Zastone D900
|
||||||
|
strcasecmp(ident, "TP660") == 0 || // Zastone DP880
|
||||||
|
strcasecmp(ident, "ZN><:") == 0) { // Radtel RT-27D
|
||||||
device = &radio_md380;
|
device = &radio_md380;
|
||||||
} else
|
} else
|
||||||
if (strcasecmp(ident, "MD-2017") == 0) {
|
if (strcasecmp(ident, "2017") == 0) { // TYT MD-2017, Retevis RT82
|
||||||
device = &radio_md2017;
|
device = &radio_md2017;
|
||||||
} else
|
} else
|
||||||
if (strcasecmp(ident, "MD-UV380") == 0) {
|
if (strcasecmp(ident, "MD-UV380") == 0) { // TYT MD-UV380
|
||||||
device = &radio_uv380;
|
device = &radio_uv380;
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "Unrecognized radio '%s'.\n",
|
fprintf(stderr, "Unrecognized radio '%s'.\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user