Merge pull request #20 from KD4PPG/master

Added AnyTone AT-D878UV as copy of AT-D868UV
This commit is contained in:
Serge Vakulenko 2018-12-10 11:47:14 -08:00 committed by GitHub
commit 6463954b6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 0 deletions

View File

@ -684,6 +684,8 @@ static int d868uv_is_compatible(radio_device_t *radio)
{
if (memcmp("D868UVE", (char*)&radio_mem[0], 7) == 0)
return 1;
if (memcmp("D878UV", (char*)&radio_mem[0], 6) == 0)
return 1;
if (memcmp("D6X2UV", (char*)&radio_mem[0], 6) == 0)
return 1;
return 0;
@ -2987,6 +2989,26 @@ radio_device_t radio_d868uv = {
d868uv_write_csv,
};
//
// Anytone AT-D878UV
//
radio_device_t radio_d878uv = {
"Anytone AT-D878UV",
d868uv_download,
d868uv_upload,
d868uv_is_compatible,
d868uv_read_image,
d868uv_save_image,
d868uv_print_version,
d868uv_print_config,
d868uv_verify_config,
d868uv_parse_parameter,
d868uv_parse_header,
d868uv_parse_row,
d868uv_update_timestamp,
d868uv_write_csv,
};
//
// BTECH DMR-6x2
//

View File

@ -49,6 +49,7 @@ static struct {
{ "DM-1701", &radio_rt84 }, // Baofeng DM-1701, Retevis RT84
{ "MD-760P", &radio_gd77 }, // Radioddity GD-77, version 3.1.1 and later
{ "D868UVE", &radio_d868uv }, // Anytone AT-D868UV
{ "D878UV", &radio_d878uv }, // Anytone AT-D878UV
{ "D6X2UV", &radio_dmr6x2 }, // BTECH DMR-6x2
{ "ZD3688", &radio_d900 }, // Zastone D900
{ "TP660", &radio_dp880 }, // Zastone DP880
@ -211,6 +212,8 @@ void radio_read_image(const char *filename)
fseek(img, 0, SEEK_SET);
if (memcmp(ident, "D868UVE", 7) == 0) {
device = &radio_d868uv;
} else if (memcmp(ident, "D878UV", 6) == 0) {
device = &radio_d868uv;
} else if (memcmp(ident, "D6X2UV", 6) == 0) {
device = &radio_dmr6x2;
} else {

View File

@ -126,6 +126,7 @@ extern radio_device_t radio_rt27d; // Radtel RT-27D
extern radio_device_t radio_rd5r; // Baofeng RD-5R
extern radio_device_t radio_gd77; // Radioddity GD-77, version 3.1.1 and later
extern radio_device_t radio_d868uv; // Anytone AT-D868UV
extern radio_device_t radio_d878uv; // Anytone AT-D878UV
extern radio_device_t radio_dmr6x2; // BTECH DMR-6x2
extern radio_device_t radio_rt84; // Baofeng DM-1701, Retevis RT84