From 389ea79efb3c67de46fae147d932fed402e60fd3 Mon Sep 17 00:00:00 2001 From: Serge Vakulenko Date: Tue, 4 Sep 2018 01:44:53 -0700 Subject: [PATCH] Fix identifiers for MD-380 and MD-2017, Add identifiers for Zastone D900, Zastone DP880 and Radtel RT-27D. --- radio.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/radio.c b/radio.c index a4f417a..6304cfe 100644 --- a/radio.c +++ b/radio.c @@ -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",