[chirp_devel] [PATCH] [anytone_iii] Fix file ident (when no metadata) for AnyTone 5888UVIII
# HG changeset patch # User Brad Schuler <brad@schuler.wsmailto:brad@schuler.ws> # Date 1605164998 25200 # Thu Nov 12 00:09:58 2020 -0700 # Node ID ea826afbd7489de236b7d1895f4552a32d78fb04 # Parent de3e3a50889fde690f5f222375fa941b421f1d87 [anytone_iii] Fix file ident (when no metadata) for AnyTone 5888UVIII
Related to issue #3941
Fix the ability to identify an image file for this radio when it has no metadata.
diff -r de3e3a50889f -r ea826afbd748 chirp/drivers/anytone_iii.py --- a/chirp/drivers/anytone_iii.py Sun Nov 08 00:26:41 2020 -0700 +++ b/chirp/drivers/anytone_iii.py Thu Nov 12 00:09:58 2020 -0700 @@ -739,7 +739,7 @@ VENDOR = "AnyTone" MODEL = "5888UVIII" BAUD_RATE = 9600 - _file_ident = "QX588UVP" + _file_ident = "588UVP" _ranges = [ (0x0000, 0x8000), @@ -1322,4 +1322,4 @@ @classmethod def match_model(cls, filedata, filename): - return cls._file_ident in filedata[0x20:0x40] + return cls._file_ident in filedata[0x40:0x4D]
participants (1)
-
Brad & Cindy Schuler