[chirp_devel] [PATCH] [KG-816] File SAVE/RELOAD difficulties Jetstream JT270

Jim Unroe
Sat May 30 12:30:10 PDT 2015


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1433013340 14400
# Node ID 730052190d1e5ba046dbf703525e6b6378f2f686
# Parent  d5d7c8a069537939ec39575b6eabbc36c40e5934
[KG-816] File SAVE/RELOAD difficulties Jetstream JT270

The "match_model" for the Wouxun KG-816 can mistakenly
match some Jetstream JT270 and Leixen VV-898 image files.

Related to issue #2621

diff -r d5d7c8a06953 -r 730052190d1e chirp/drivers/wouxun.py
--- a/chirp/drivers/wouxun.py	Tue May 12 15:27:55 2015 -0700
+++ b/chirp/drivers/wouxun.py	Sat May 30 15:15:40 2015 -0400
@@ -1541,6 +1541,7 @@
     def match_model(cls, filedata, filename):
         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