[chirp_devel] [PATCH] [UV-82] Fix for incorrect detection of old UV-82 series images
Jim Unroe
Fri Nov 8 17:35:31 PST 2019
# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1573263213 18000
# Node ID 8d1316d4f656c60ba5511966f15218c721bba1b3
# Parent 8e70103156f5a697363fd878c8f1bf29d726f716
[UV-82] Fix for incorrect detection of old UV-82 series images
Old CHIRP Radio Images (*.img) from Baofeng UV-82 series radio models
that do not have a "metadata blob trailer" are incorrectly dectected
as being from a Radioddity UV-82X3.
This patch separates the UV-82X3 into a separate "basetype" to address
this issue.
#7217
diff -r 8e70103156f5 -r 8d1316d4f656 chirp/drivers/uv5r.py
--- a/chirp/drivers/uv5r.py Thu Nov 07 13:56:57 2019 -0800
+++ b/chirp/drivers/uv5r.py Fri Nov 08 20:33:33 2019 -0500
@@ -288,9 +288,10 @@
BASETYPE_KT980HP = ["BFP3V3 B"]
BASETYPE_F8HP = ["BFP3V3 F", "N5R-3", "N5R3", "F5R3", "BFT"]
BASETYPE_UV82HP = ["N82-3", "N823", "N5R2"]
+BASETYPE_UV82X3 = ["HN5RV01"]
BASETYPE_LIST = BASETYPE_UV5R + BASETYPE_F11 + BASETYPE_UV82 + \
BASETYPE_BJ55 + BASETYPE_UV6 + BASETYPE_KT980HP + \
- BASETYPE_F8HP + BASETYPE_UV82HP
+ BASETYPE_F8HP + BASETYPE_UV82HP + BASETYPE_UV82X3
AB_LIST = ["A", "B"]
ALMOD_LIST = ["Site", "Tone", "Code"]
@@ -1806,6 +1807,7 @@
class Radioddity82X3Radio(BaofengUV82Radio):
VENDOR = "Radioddity"
MODEL = "UV-82X3"
+ _basetype = BASETYPE_UV82X3
def get_features(self):
rf = BaofengUV5R.get_features(self)
diff -r 8e70103156f5 -r 8d1316d4f656 tests/images/Kenwood_TK-8180.img
Binary file tests/images/Kenwood_TK-8180.img has changed
More information about the chirp_devel
mailing list