[chirp_devel] [PATCH] [VV-898] Update Image Detections
Jim Unroe
Wed Dec 24 15:31:21 PST 2014
# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1419463798 18000
# Node ID 7bcbc2be53d6a56e6836810bd2f33052455be9a5
# Parent a81615723033a1f49794e33609913e563efe3ace
[VV-898] Update Image Detections
Add method to fall back to original detection string for older data files
related to #2119
diff -r a81615723033 -r 7bcbc2be53d6 chirp/leixen.py
--- a/chirp/leixen.py Wed Dec 24 14:16:04 2014 -0800
+++ b/chirp/leixen.py Wed Dec 24 18:29:58 2014 -0500
@@ -348,7 +348,11 @@
@classmethod
def match_model(cls, filedata, filename):
- return filedata[0x170:0x176] == cls._file_ident
+ if filedata[0x170:0x176] == cls._file_ident:
+ return True
+ elif filedata[0x900:0x906] == cls.MODEL:
+ return True
+ return False
@directory.register
More information about the chirp_devel
mailing list