[chirp_devel] [PATCH] [UV-5R] Add Support for BTS311 Firmware
# HG changeset patch # User Jim Unroe rock.unroe@gmail.com # Date 1416277477 18000 # Node ID e0e310be048d29e818db86839356d24ef2f2ade8 # Parent 47831fe5f92d8c0ae02088f73645e5dd94047ff2 [UV-5R] Add Support for BTS311 Firmware
Add support fro a UV-5R having BTS311/BFB297 firmware (branded by Etekcity).
Bug #2057
diff -r 47831fe5f92d -r e0e310be048d chirp/uv5r.py --- a/chirp/uv5r.py Tue Nov 11 10:00:36 2014 -0800 +++ b/chirp/uv5r.py Mon Nov 17 21:24:37 2014 -0500 @@ -252,7 +252,7 @@
vhf_220_radio = "\x02"
-BASETYPE_UV5R = ["BFS", "BFB", "N5R-2"] +BASETYPE_UV5R = ["BFS", "BFB", "N5R-2", "BTS"] BASETYPE_F11 = ["USA"] BASETYPE_UV82 = ["US2S", "B82S", "BF82"] BASETYPE_BJ55 = ["BJ55"] # needed for for the Baojie UV-55 in bjuv55.py @@ -906,6 +906,9 @@ if 'BFS' in version_tag: idx = version_tag.index("BFS") + 3 return int(version_tag[idx:idx + 3]) + elif 'BTS' in version_tag: + idx = version_tag.index("BTS") + 3 + return int(version_tag[idx:idx + 3]) elif 'BF82' in version_tag: idx = version_tag.index("BF82") + 2 return int(version_tag[idx:idx + 4])
participants (1)
-
Jim Unroe