[chirp_devel] [PATCH 1 of 1] yaesu: match model on ID and length. #93
Tom Hayward
Wed Sep 5 13:25:44 PDT 2012
# HG changeset patch
# User Tom Hayward <tom at tomh.us>
# Date 1346876708 21600
# Node ID af2ac251e4f11e69de7297f2667c75670ba5d58c
# Parent 399056e3b5df7308907dd83a3425d62967c0a168
yaesu: match model on ID and length. #93
diff -r 399056e3b5df -r af2ac251e4f1 chirp/yaesu_clone.py
--- a/chirp/yaesu_clone.py Tue Sep 04 18:06:13 2012 -0600
+++ b/chirp/yaesu_clone.py Wed Sep 05 14:25:08 2012 -0600
@@ -206,7 +206,7 @@
@classmethod
def match_model(cls, filedata, filename):
- return filedata[:5] == cls._model
+ return filedata[:5] == cls._model and len(filedata) == cls._memsize
def _wipe_memory_banks(self, mem):
"""Remove @mem from all the banks it is currently in"""
More information about the chirp_devel
mailing list