17 Feb
2013
17 Feb
'13
9:18 p.m.
On Sun, Feb 17, 2013 at 12:12 PM, Tom Hayward esarfl@gmail.com wrote:
+@directory.register +class KG818Radio(KG816Radio):
- """Wouxun KG818"""
- MODEL = "KG818"
- @classmethod
- def match_model(cls, filedata, filename):
if len(filedata) == 8192 and \
filedata[0x60:0x64] != "2009" and \
filedata[0x1f77:0x1f7d] == "\xff\xff\xff\xff\xff\xff" and \
filedata[0x0d70:0x0d80] == "w\xeew1w\xeew1w\xeew1w\xeew1":
return True
return False
Hmm, while this matches the Wouxun KG-618 66-88 MHz version correctly, other frequency ranges of the KG-618 will show up as KG-616s. This isn't necessarily a bad thing, but there could be a better way. What would Marco do?
Tom KD7LXL