Make sure contacts are continuous for d868uv.
This commit is contained in:
parent
7fe111abef
commit
dd920925f1
10
d868uv.c
10
d868uv.c
@ -2675,6 +2675,16 @@ static int d868uv_verify_config(radio_device_t *radio)
|
|||||||
ncontacts++;
|
ncontacts++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Contacts have to be continuous for UV380.
|
||||||
|
for (i=0; i<ncontacts; i++) {
|
||||||
|
if (!get_contact(i)) {
|
||||||
|
fprintf(stderr, "Contact %d is missing.\n", i+1);
|
||||||
|
fprintf(stderr, "Contacts must be continuous for %s.\n", radio->name);
|
||||||
|
nerrors++;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (nerrors > 0) {
|
if (nerrors > 0) {
|
||||||
fprintf(stderr, "Total %d errors.\n", nerrors);
|
fprintf(stderr, "Total %d errors.\n", nerrors);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user