Detect MD-390 properly.

This commit is contained in:
Serge Vakulenko 2018-11-27 19:11:57 -08:00
parent dd920925f1
commit 739580edfb
3 changed files with 22 additions and 0 deletions

20
md380.c
View File

@ -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
//

View File

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

View File

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