diff options
| -rw-r--r-- | PKG-INFO | 2 | ||||
| -rw-r--r-- | chirp/__init__.py | 2 | ||||
| -rw-r--r-- | chirp/drivers/btech.py | 31 |
3 files changed, 26 insertions, 9 deletions
@@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: chirp -Version: daily-20160415 +Version: daily-20160419 Summary: UNKNOWN Home-page: UNKNOWN Author: UNKNOWN diff --git a/chirp/__init__.py b/chirp/__init__.py index c9d93c9..932835b 100644 --- a/chirp/__init__.py +++ b/chirp/__init__.py @@ -17,7 +17,7 @@ import os import sys from glob import glob -CHIRP_VERSION="daily-20160415" +CHIRP_VERSION="daily-20160419" module_dir = os.path.dirname(sys.modules["chirp"].__file__) __all__ = [] diff --git a/chirp/drivers/btech.py b/chirp/drivers/btech.py index 26c3c0e..40ca5e8 100644 --- a/chirp/drivers/btech.py +++ b/chirp/drivers/btech.py @@ -263,11 +263,12 @@ UV2501G2_fp = "BTG214" # B-TECH UV-2501+220 pre-production units UV2501_220pp_fp = "M3C281" # extra block read for the 2501+220 pre-production units +# the same for all of this radios so far UV2501_220pp_id = " 280528" # B-TECH UV-2501+220 UV2501_220_fp = "M3G201" -# extra block read for the 2501+220 -# the extra block is the same as the pp unit +# new variant, let's call it Generation 2 +UV2501_220G2_fp = "BTG211" # B-TECH UV-5001 pre-production units + 1st Gen radios @@ -275,7 +276,6 @@ UV5001pp_fp = "V19204" # B-TECH UV-5001 alpha units UV5001alpha_fp = "V28204" # B-TECH UV-5001 second generation (2G) radios -# !!!! This is the same as the UV-2501 (2G) Radios !!!! UV5001G2_fp = "BTG214" # B-TECH UV-5001 second generation (2G2) UV5001G22_fp = "V2G204" @@ -295,6 +295,12 @@ KT8900_fp = "M29154" KT8900_id = " 303688" +# Sainsonic GT890 +GT890_fp = "M2G1F4" +# this need a second id +# and is the same of the QYT KT8900 + + #### MAGICS # for the Waccom Mini-8900 MSTRING_MINI8900 = "\x55\xA5\xB5\x45\x55\x45\x4d\x02" @@ -444,7 +450,7 @@ def _start_clone_mode(radio, status): status.cur = status.max radio.status_fn(status) - return True + return True return False @@ -1115,7 +1121,7 @@ class BTech(chirp_common.CloneModeRadio, chirp_common.ExperimentalRadio): basic.append(screv) pttlt = RadioSetting("settings.pttlt", "PTT transmit delay", - RadioSettingValueInteger(0, 30, + RadioSettingValueInteger(0, 30, _mem.settings.pttlt)) basic.append(pttlt) @@ -1125,7 +1131,7 @@ class BTech(chirp_common.CloneModeRadio, chirp_common.ExperimentalRadio): basic.append(emctp) emcch = RadioSetting("settings.emcch", "Alarm channel", - RadioSettingValueInteger(0, 199, + RadioSettingValueInteger(0, 199, _mem.settings.emcch)) basic.append(emcch) @@ -1549,7 +1555,7 @@ class UV2501_220(BTech): """Baofeng Tech UV2501+220""" MODEL = "UV-2501+220" _magic = MSTRING_220 - _fileid = [UV2501_220_fp, UV2501_220pp_fp] + _fileid = [UV2501_220G2_fp, UV2501_220_fp, UV2501_220pp_fp] _id2 = UV2501_220pp_id @@ -1590,3 +1596,14 @@ class KT9800(BTech): _magic = MSTRING_KT8900 _fileid = [KT8900_fp, ] _id2 = KT8900_id + + +@directory.register +class GT890(BTech): + """Sainsonic GT890""" + VENDOR = "Sainsonic" + MODEL = "GT-890" + # ranges are the same as btech's defaults + _magic = MSTRING_KT8900 + _fileid = [GT890_fp, ] + _id2 = KT8900_id |
