[chirp_devel] [PATCH] [wouxun] Prevent over-matching images
Brian Dickman
Sun Aug 21 20:57:46 PDT 2016
# HG changeset patch
# User Brian Dickman <brian.maybe at gmail.com>
# Date 1471831223 25200
# Sun Aug 21 19:00:23 2016 -0700
# Node ID 1f5e2808ac9895b1d32077e47043c694ea96ef0d
# Parent 00d272840a83b8ceef14a7dd52da8a6aa411be76
[wouxun] Prevent KGUVD1PRadio driver from over-matching on leixen 898S
images (copy from same fix on KG816, in preparation for leixen 898S
driver and image), fixes #3947
The KGUVD1 match isn't very discriminate; basically any 8k image with
lots of 0xff toward the end could match. This copies the filter used
in the KG816 driver. Specifically the driver was matching to the 898S
test image that will be added shortly, and this fixes it, but other
users could run into the problem as well.
diff -r 00d272840a83 -r 1f5e2808ac98 chirp/drivers/wouxun.py
--- a/chirp/drivers/wouxun.py Sun Aug 21 13:06:15 2016 -0700
+++ b/chirp/drivers/wouxun.py Sun Aug 21 19:00:23 2016 -0700
@@ -887,6 +887,7 @@
# New-style image (CHIRP 0.1.12)
if len(filedata) == 8192 and \
filedata[0x60:0x64] != "2009" and \
+ filedata[0x170:0x173] != "LX-" and \
filedata[0x1f77:0x1f7d] == "\xff\xff\xff\xff\xff\xff" and \
filedata[0x0d70:0x0d80] == "\xff\xff\xff\xff\xff\xff\xff\xff" \
"\xff\xff\xff\xff\xff\xff\xff\xff":
More information about the chirp_devel
mailing list