Fix incorrect printing of contact type.
This commit is contained in:
parent
761ead5afe
commit
77bf3ec6ca
@ -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
|
||||||
|
|
||||||
|
2
md380.c
2
md380.c
@ -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 ? "+" : "-");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
uv380.c
2
uv380.c
@ -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 ? "+" : "-");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user