Fix identifiers for MD-380 and MD-2017,

Add identifiers for Zastone D900, Zastone DP880 and Radtel RT-27D.
This commit is contained in:
Serge Vakulenko 2018-09-04 01:44:53 -07:00
parent 4ddc078bc1
commit 389ea79efb
1 changed files with 6 additions and 3 deletions

View File

@ -71,13 +71,16 @@ void radio_connect()
const char *ident = dfu_init(0x0483, 0xdf11);
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;
} else
if (strcasecmp(ident, "MD-2017") == 0) {
if (strcasecmp(ident, "2017") == 0) { // TYT MD-2017, Retevis RT82
device = &radio_md2017;
} else
if (strcasecmp(ident, "MD-UV380") == 0) {
if (strcasecmp(ident, "MD-UV380") == 0) { // TYT MD-UV380
device = &radio_uv380;
} else {
fprintf(stderr, "Unrecognized radio '%s'.\n",