From 739580edfbc15bb7a4f420bc5d8d9644120711b0 Mon Sep 17 00:00:00 2001 From: Serge Vakulenko Date: Tue, 27 Nov 2018 19:11:57 -0800 Subject: [PATCH] Detect MD-390 properly. --- md380.c | 20 ++++++++++++++++++++ radio.c | 1 + radio.h | 1 + 3 files changed, 22 insertions(+) diff --git a/md380.c b/md380.c index 23815f6..11589cb 100644 --- a/md380.c +++ b/md380.c @@ -2252,6 +2252,26 @@ radio_device_t radio_md380 = { //TODO: md380_write_csv, }; +// +// TYT MD-390 +// +radio_device_t radio_md390 = { + "TYT MD-390", + md380_download, + md380_upload, + md380_is_compatible, + md380_read_image, + md380_save_image, + md380_print_version, + md380_print_config, + md380_verify_config, + md380_parse_parameter, + md380_parse_header, + md380_parse_row, + md380_update_timestamp, + //TODO: md380_write_csv, +}; + // // Zastone D900 // diff --git a/radio.c b/radio.c index ef855a7..ac555f8 100644 --- a/radio.c +++ b/radio.c @@ -40,6 +40,7 @@ static struct { radio_device_t *device; } radio_tab[] = { { "DR780", &radio_md380 }, // TYT MD-380, Retevis RT3, RT8 + { "MD390", &radio_md390 }, // TYT MD-390 { "MD-UV380", &radio_uv380 }, // TYT MD-UV380 { "MD-UV390", &radio_uv390 }, // TYT MD-UV390, Retevis RT3S { "2017", &radio_md2017 }, // TYT MD-2017, Retevis RT82 diff --git a/radio.h b/radio.h index 3f8d331..c253539 100644 --- a/radio.h +++ b/radio.h @@ -115,6 +115,7 @@ struct _radio_device_t { }; extern radio_device_t radio_md380; // TYT MD-380 +extern radio_device_t radio_md390; // TYT MD-390 extern radio_device_t radio_md2017; // TYT MD-2017 extern radio_device_t radio_uv380; // TYT MD-UV380 extern radio_device_t radio_uv390; // TYT MD-UV390