# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1528672443 14400 # Node ID 907a29c461756340424bde01760cfc2065f9f91c # Parent 5965f19accff69f1c895d42f063cb865a1759dca [UV-6R] Add detection for BF230#2 images
This patch adds detection for the newly discovered BF230#2 "fingerprint" in the CHIRP Radio Images (*.img) file from a Baofeng UV-6R.
Fixes #5839
diff -r 5965f19accff -r 907a29c46175 chirp/drivers/uv6r.py --- a/chirp/drivers/uv6r.py Tue Jun 05 16:59:48 2018 -0700 +++ b/chirp/drivers/uv6r.py Sun Jun 10 19:14:03 2018 -0400 @@ -40,6 +40,7 @@
# Baofeng UV-6R UV6R_fp1 = " BF230#1" +UV6R_fp2 = " BF230#2"
DTMF_CHARS = "0123456789 *#ABCD" STEPS = [2.5, 5.0, 6.25, 10.0, 12.5, 20.0, 25.0, 50.0] @@ -96,7 +97,7 @@ VENDOR = "Baofeng" MODEL = "UV-6R"
- _fileid = [UV6R_fp1, ] + _fileid = [UV6R_fp2, UV6R_fp1, ]
_magic = [MSTRING_UV6R, ] _magic_response_length = 8 @@ -859,7 +860,7 @@ match_model = False
# testing the file data size - if len(filedata) == 0x2008: + if len(filedata) == 0x2008 or 0x2010: match_size = True
# testing the firmware model fingerprint