[chirp_devel] [PATCH] [uv5r] UV-82 use ASCII charset Partially fixes #5227
Imuli
Sat Oct 7 09:09:35 PDT 2017
# HG changeset patch
# User Imuli <i at imu.li>
# Date 1507391881 14400
# Sat Oct 07 11:58:01 2017 -0400
# Node ID c207cd1d97ea46eaef00b417dffa8058e9f8c696
# Parent b4000bed33bd10e80c07ffad79e3271ceae41be4
[uv5r] UV-82 use ASCII charset Partially fixes #5227
The UV-82 supports all of ASCII (with two replacements).
I imagine other Baofeng radios do also, so this provides an easy means to
specify supported characters for different models.
diff -r b4000bed33bd -r c207cd1d97ea chirp/drivers/uv5r.py
--- a/chirp/drivers/uv5r.py Sat Sep 30 13:10:50 2017 +0200
+++ b/chirp/drivers/uv5r.py Sat Oct 07 11:58:01 2017 -0400
@@ -764,7 +764,7 @@
rf.has_tuning_step = False
rf.can_odd_split = True
rf.valid_name_length = 7
- rf.valid_characters = UV5R_CHARSET
+ rf.valid_characters = getattr(self, '_valid_chars', UV5R_CHARSET)
rf.valid_skips = ["", "S"]
rf.valid_tmodes = ["", "Tone", "TSQL", "DTCS", "Cross"]
rf.valid_cross_modes = ["Tone->Tone", "Tone->DTCS", "DTCS->Tone",
@@ -1777,6 +1777,7 @@
_idents = [UV5R_MODEL_UV82]
_vhf_range = (130000000, 176000000)
_uhf_range = (400000000, 521000000)
+ _valid_chars = chirp_common.CHARSET_ASCII
def _is_orig(self):
# Override this for UV82 to always return False
More information about the chirp_devel
mailing list