Fix incorrect printing of contact type.

This commit is contained in:
Serge Vakulenko 2018-09-12 19:02:25 -07:00
parent 761ead5afe
commit 77bf3ec6ca
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ VPATH = ../../dmrconfig.wiki/files
all: $(CONF) all: $(CONF)
clean: clean:
rm -f *.conf rm -f $(CONF)
.SUFFIXES: .conf .rdt .SUFFIXES: .conf .rdt

View File

@ -1206,7 +1206,7 @@ static void md380_print_config(radio_device_t *radio, FILE *out, int verbose)
fprintf(out, "%5d ", i+1); fprintf(out, "%5d ", i+1);
print_unicode(out, ct->name, 16, 1); print_unicode(out, ct->name, 16, 1);
fprintf(out, " %-7s %-8d %s\n", fprintf(out, " %-7s %-8d %s\n",
CONTACT_TYPE[ct->type], CONTACT_ID(ct), ct->receive_tone ? "+" : "-"); CONTACT_TYPE[ct->type & 3], CONTACT_ID(ct), ct->receive_tone ? "+" : "-");
} }
} }

View File

@ -1294,7 +1294,7 @@ static void uv380_print_config(radio_device_t *radio, FILE *out, int verbose)
fprintf(out, "%5d ", i+1); fprintf(out, "%5d ", i+1);
print_unicode(out, ct->name, 16, 1); print_unicode(out, ct->name, 16, 1);
fprintf(out, " %-7s %-8d %s\n", fprintf(out, " %-7s %-8d %s\n",
CONTACT_TYPE[ct->type], CONTACT_ID(ct), ct->receive_tone ? "+" : "-"); CONTACT_TYPE[ct->type & 3], CONTACT_ID(ct), ct->receive_tone ? "+" : "-");
} }
} }