diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-11-23 16:46:28 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-11-23 16:46:28 +0000 |
| commit | 4dafcb794037c0752f999164bbbe5a012a34dbe3 (patch) | |
| tree | 8731b37711758ad8d34c81cfe9eee498c18e00fb | |
| parent | 384111bdcd23eeccfa70c048ce0424a41148c7a3 (diff) | |
| parent | 111ea4a4f916781e9295351d44b896d7671adc7e (diff) | |
Update upstream source from tag 'upstream/20241122'
Update to upstream version '20241122'
with Debian dir c94d1ae341c0d2d674df6ddeb8d74b098a746e86
| -rw-r--r-- | PKG-INFO | 2 | ||||
| -rw-r--r-- | chirp.egg-info/PKG-INFO | 2 | ||||
| -rw-r--r-- | chirp.egg-info/SOURCES.txt | 1 | ||||
| -rw-r--r-- | chirp/__init__.py | 2 | ||||
| -rw-r--r-- | chirp/chirp_common.py | 13 | ||||
| -rw-r--r-- | chirp/drivers/__init__.py | 8 | ||||
| -rw-r--r-- | chirp/drivers/ft70.py | 2 | ||||
| -rw-r--r-- | chirp/drivers/icv80.py | 21 | ||||
| -rw-r--r-- | chirp/share/welcome_screen_zh_CN.png | bin | 0 -> 31860 bytes | |||
| -rw-r--r-- | setup.py | 2 | ||||
| -rw-r--r-- | tests/__pycache__/test_banks.cpython-310-pytest-7.1.3.pyc | bin | 3772 -> 3723 bytes | |||
| -rw-r--r-- | tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc | bin | 7385 -> 7373 bytes | |||
| -rw-r--r-- | tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc | bin | 31643 -> 31694 bytes | |||
| -rw-r--r-- | tests/unit/__pycache__/test_wxui_radiothread.cpython-310-pytest-7.1.3.pyc | bin | 7151 -> 7345 bytes | |||
| -rw-r--r-- | tests/unit/test_bitwise.py | 6 |
15 files changed, 32 insertions, 27 deletions
@@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: chirp -Version: 20241115 +Version: 20241122 Summary: A cross-platform cross-radio programming tool Home-page: https://chirp.danplanet.com Requires-Python: >=3.10,<4 diff --git a/chirp.egg-info/PKG-INFO b/chirp.egg-info/PKG-INFO index cccce57..46f737e 100644 --- a/chirp.egg-info/PKG-INFO +++ b/chirp.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: chirp -Version: 20241115 +Version: 20241122 Summary: A cross-platform cross-radio programming tool Home-page: https://chirp.danplanet.com Requires-Python: >=3.10,<4 diff --git a/chirp.egg-info/SOURCES.txt b/chirp.egg-info/SOURCES.txt index a718a0f..31067da 100644 --- a/chirp.egg-info/SOURCES.txt +++ b/chirp.egg-info/SOURCES.txt @@ -232,6 +232,7 @@ chirp/share/welcome_screen_bg.png chirp/share/welcome_screen_es.png chirp/share/welcome_screen_fr.png chirp/share/welcome_screen_it.png +chirp/share/welcome_screen_zh_CN.png chirp/sources/__init__.py chirp/sources/base.py chirp/sources/dmrmarc.py diff --git a/chirp/__init__.py b/chirp/__init__.py index 22069ec..b35cf35 100644 --- a/chirp/__init__.py +++ b/chirp/__init__.py @@ -1 +1 @@ -CHIRP_VERSION = "next-20241115" +CHIRP_VERSION = "next-20241122" diff --git a/chirp/chirp_common.py b/chirp/chirp_common.py index a5b93f9..53d77a6 100644 --- a/chirp/chirp_common.py +++ b/chirp/chirp_common.py @@ -1783,9 +1783,12 @@ def required_step(freq, allowed=None): } # Try the above "standard" steps first in order + required_step = None for step, validate in steps.items(): if step in allowed and validate(freq): return step + elif validate(freq) and required_step is None: + required_step = step # Try any additional steps in the allowed list for step in allowed: @@ -1797,8 +1800,14 @@ def required_step(freq, allowed=None): step, format_freq(freq))) return step - raise errors.InvalidDataError("Unable to find a supported " + - "tuning step for %s" % format_freq(freq)) + if required_step is not None: + raise errors.InvalidDataError(( + 'Frequency %s requires step %.2f, ' + 'which is not supported') % ( + format_freq(freq), required_step)) + else: + raise errors.InvalidDataError("Unable to find a supported " + + "tuning step for %s" % format_freq(freq)) def fix_rounded_step(freq): diff --git a/chirp/drivers/__init__.py b/chirp/drivers/__init__.py index 40e9cd5..a3d9058 100644 --- a/chirp/drivers/__init__.py +++ b/chirp/drivers/__init__.py @@ -161,10 +161,10 @@ from chirp.drivers import ksun_m6 from chirp.drivers import radtel_rt490 from chirp.drivers import retevis_ra87 from chirp.drivers import uvk5_egzumer +from chirp.drivers import alinco_dr735t from chirp.drivers import baofeng_uv17 -from chirp.drivers import uvk5 -from chirp.drivers import mml_jc8810 from chirp.drivers import baofeng_uv17Pro -from chirp.drivers import alinco_dr735t +from chirp.drivers import mml_jc8810 from chirp.drivers import tdh8 -__all__ = ['anytone', 'btech', 'anytone778uv', 'anytone_ht', 'anytone_iii', 'baofeng_common', 'baofeng_uv3r', 'baofeng_wp970i', 'bf_t1', 'bf_t8', 'boblov_x3plus', 'fake', 'fd268', 'ft1500m', 'ft1802', 'ft1d', 'ft2800', 'ft2900', 'ft4', 'ft450d', 'ft50', 'ft2d', 'ft60', 'ft70', 'ft7100', 'ft7800', 'ft8100', 'ft817', 'ft818', 'ft857', 'ft90', 'ftlx011', 'ftm3200d', 'ftm350', 'ftm7250d', 'ga510', 'generic_csv', 'generic_tpe', 'gmrsuv1', 'gmrsv2', 'h777', 'hf90', 'hg_uv98', 'alinco', 'bj9900', 'ic2100', 'hobbypcb', 'ic208', 'ic2300', 'ic2720', 'ic2200', 'ic2730', 'ic2820', 'ic9x_ll', 'ic9x', 'ic9x_icf', 'icf', 'ic9x_icf_ll', 'icomciv', 'icp7', 'icq7', 'ict8', 'icv80', 'ict70', 'ict7h', 'icv86', 'id51', 'icx90', 'icw32', 'icx8x', 'id31', 'id5100', 'id51plus', 'id800', 'id880', 'idrp', 'kg935g', 'kguv8d', 'iradio_uv_5118', 'kenwood_hmk', 'kenwood_itm', 'kenwood_live', 'kguv8e', 'kyd', 'kguv8dplus', 'kguv920pa', 'kguv980p', 'kguv9dplus', 'lt725uv', 'kyd_IP620', 'leixen', 'mursv1', 'puxing', 'ap510', 'puxing_px888k', 'radioddity_r2', 'radtel_t18', 'retevis_rb15', 'retevis_rb17p', 'retevis_rb28', 'retevis_rt1', 'retevis_rt21', 'retevis_rt22', 'retevis_rt23', 'retevis_rt26', 'retevis_rt76p', 'retevis_rt87', 'retevis_rt98', '__init__', 'bjuv55', 'rh5r_v2', 'tdxone_tdq8a', 'template', 'tg_uv2p', 'th350', 'th7800', 'th9000', 'th9800', 'th_uv3r', 'th_uv3r25', 'th_uv8000', 'th_uv88', 'th_uvf8d', 'thd72', 'thd74', 'thuv1f', 'tk270', 'tk3140', 'tk760', 'tk760g', 'tk8102', 'tk8160', 'tk8180', 'tmd710', 'tmv71', 'tmv71_ll', 'ts2000', 'ts480', 'ts590', 'ts850', 'uv5r', 'uv5x3', 'uv6r', 'uvb5', 'vgc', 'vx170', 'vx2', 'vx3', 'vx5', 'vx510', 'vx6', 'vx7', 'vx8', 'vxa700', 'wouxun', 'wouxun_common', 'kenwood_d7', 'yaesu_clone', 'iradio_uv_5118plus', 'ksun_m6', 'radtel_rt490', 'retevis_ra87', 'uvk5_egzumer', 'baofeng_uv17', 'uvk5', 'mml_jc8810', 'baofeng_uv17Pro', 'alinco_dr735t', 'tdh8'] +from chirp.drivers import uvk5 +__all__ = ['anytone', 'btech', 'anytone778uv', 'anytone_ht', 'anytone_iii', 'baofeng_common', 'baofeng_uv3r', 'baofeng_wp970i', 'bf_t1', 'bf_t8', 'boblov_x3plus', 'fake', 'fd268', 'ft1500m', 'ft1802', 'ft1d', 'ft2800', 'ft2900', 'ft4', 'ft450d', 'ft50', 'ft2d', 'ft60', 'ft70', 'ft7100', 'ft7800', 'ft8100', 'ft817', 'ft818', 'ft857', 'ft90', 'ftlx011', 'ftm3200d', 'ftm350', 'ftm7250d', 'ga510', 'generic_csv', 'generic_tpe', 'gmrsuv1', 'gmrsv2', 'h777', 'hf90', 'hg_uv98', 'alinco', 'bj9900', 'ic2100', 'hobbypcb', 'ic208', 'ic2300', 'ic2720', 'ic2200', 'ic2730', 'ic2820', 'ic9x_ll', 'ic9x', 'ic9x_icf', 'icf', 'ic9x_icf_ll', 'icomciv', 'icp7', 'icq7', 'ict8', 'icv80', 'ict70', 'ict7h', 'icv86', 'id51', 'icx90', 'icw32', 'icx8x', 'id31', 'id5100', 'id51plus', 'id800', 'id880', 'idrp', 'kg935g', 'kguv8d', 'iradio_uv_5118', 'kenwood_hmk', 'kenwood_itm', 'kenwood_live', 'kguv8e', 'kyd', 'kguv8dplus', 'kguv920pa', 'kguv980p', 'kguv9dplus', 'lt725uv', 'kyd_IP620', 'leixen', 'mursv1', 'puxing', 'ap510', 'puxing_px888k', 'radioddity_r2', 'radtel_t18', 'retevis_rb15', 'retevis_rb17p', 'retevis_rb28', 'retevis_rt1', 'retevis_rt21', 'retevis_rt22', 'retevis_rt23', 'retevis_rt26', 'retevis_rt76p', 'retevis_rt87', 'retevis_rt98', '__init__', 'bjuv55', 'rh5r_v2', 'tdxone_tdq8a', 'template', 'tg_uv2p', 'th350', 'th7800', 'th9000', 'th9800', 'th_uv3r', 'th_uv3r25', 'th_uv8000', 'th_uv88', 'th_uvf8d', 'thd72', 'thd74', 'thuv1f', 'tk270', 'tk3140', 'tk760', 'tk760g', 'tk8102', 'tk8160', 'tk8180', 'tmd710', 'tmv71', 'tmv71_ll', 'ts2000', 'ts480', 'ts590', 'ts850', 'uv5r', 'uv5x3', 'uv6r', 'uvb5', 'vgc', 'vx170', 'vx2', 'vx3', 'vx5', 'vx510', 'vx6', 'vx7', 'vx8', 'vxa700', 'wouxun', 'wouxun_common', 'kenwood_d7', 'yaesu_clone', 'iradio_uv_5118plus', 'ksun_m6', 'radtel_rt490', 'retevis_ra87', 'uvk5_egzumer', 'alinco_dr735t', 'baofeng_uv17', 'baofeng_uv17Pro', 'mml_jc8810', 'tdh8', 'uvk5'] diff --git a/chirp/drivers/ft70.py b/chirp/drivers/ft70.py index fbe5b55..6b9cf21 100644 --- a/chirp/drivers/ft70.py +++ b/chirp/drivers/ft70.py @@ -344,7 +344,7 @@ DUPLEX = ["", "-", "+", "split"] MODES = ["FM", "AM", "NFM"] -STEPS = [0, 5, 6.25, 10, 12.5, 15, 20, 25, 50, 100] # 0 = auto +STEPS = [5, 6.25, 0, 10, 12.5, 15, 20, 25, 50, 100] # 0 = auto? RFSQUELCH = ["OFF", "S1", "S2", "S3", "S4", "S5", "S6", "S7", "S8"] SKIPS = ["", "S", "P"] diff --git a/chirp/drivers/icv80.py b/chirp/drivers/icv80.py index aa3e69c..1564a9e 100644 --- a/chirp/drivers/icv80.py +++ b/chirp/drivers/icv80.py @@ -170,7 +170,7 @@ class ICV80Radio(icf.IcomCloneModeRadio, chirp_common.ExperimentalRadio): rf.memory_bounds = (0, 199) rf.valid_modes = MODES rf.valid_tmodes = TMODES - rf.valid_duplexes = DUPLEXES + rf.valid_duplexes = DUPLEXES + ['off'] rf.valid_tuning_steps = TUNING_STEPS rf.valid_power_levels = POWER_LEVELS rf.valid_skips = SKIPS @@ -410,7 +410,10 @@ class ICV80Radio(icf.IcomCloneModeRadio, chirp_common.ExperimentalRadio): if mem.extd_number == "": mem.name = str(_mem.name).rstrip() mem.skip = (_skip & bit) and "S" or "" - mem.duplex = DUPLEXES[_mem.duplex] + if _mem.tx_inhibit: + mem.duplex = 'off' + else: + mem.duplex = DUPLEXES[_mem.duplex] mem.power = POWER_LEVELS[_mem.power] mem.tuning_step = TUNING_STEPS[_mem.tuning_step] mem.mode = MODES[_mem.mode] @@ -427,13 +430,6 @@ class ICV80Radio(icf.IcomCloneModeRadio, chirp_common.ExperimentalRadio): rev.set_doc("Reverse duplex") mem.extra.append(rev) - # Tx inhibit - tx_inhibit = RadioSetting("tx_inhibit", "TX inhibit", - RadioSettingValueBoolean( - bool(not _mem.tx_inhibit))) - tx_inhibit.set_doc("TX inhibit") - mem.extra.append(tx_inhibit) - return mem def get_memory(self, number): @@ -497,7 +493,10 @@ class ICV80Radio(icf.IcomCloneModeRadio, chirp_common.ExperimentalRadio): _mem.freq = mem.freq // mult _mem.offset = int(mem.offset) // mult _mem.name = str(mem.name).ljust(5) - _mem.duplex = DUPLEXES.index(mem.duplex) + try: + _mem.duplex = DUPLEXES.index(mem.duplex) + except ValueError: + _mem.duplex = 0 power = mem.power or POWER_LEVELS[0] _mem.power = POWER_LEVELS.index(power) _mem.tuning_step = TUNING_STEPS.index(mem.tuning_step) @@ -507,6 +506,7 @@ class ICV80Radio(icf.IcomCloneModeRadio, chirp_common.ExperimentalRadio): _mem.ctone = chirp_common.TONES.index(mem.ctone) _mem.dtcs = chirp_common.DTCS_CODES.index(mem.dtcs) _mem.dtcs_polarity = DTCS_POLARITY.index(mem.dtcs_polarity) + _mem.tx_inhibit = mem.duplex == 'off' # Set used _unused &= ~bit @@ -519,7 +519,6 @@ class ICV80Radio(icf.IcomCloneModeRadio, chirp_common.ExperimentalRadio): _skip &= ~bit if mem.extra: - _mem.tx_inhibit = not mem.extra['tx_inhibit'].value _mem.reverse_duplex = mem.extra['reverse_duplex'].value def get_raw_memory(self, number): diff --git a/chirp/share/welcome_screen_zh_CN.png b/chirp/share/welcome_screen_zh_CN.png Binary files differnew file mode 100644 index 0000000..caa69f3 --- /dev/null +++ b/chirp/share/welcome_screen_zh_CN.png @@ -5,7 +5,7 @@ setup(name='chirp', description='A cross-platform cross-radio programming tool', packages=find_packages(include=["chirp*"]), include_package_data=True, - version='20241115', + version='20241122', url='https://chirp.danplanet.com', python_requires=">=3.10,<4", install_requires=[ diff --git a/tests/__pycache__/test_banks.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/test_banks.cpython-310-pytest-7.1.3.pyc Binary files differindex 2370bb4..e60b4d9 100644 --- a/tests/__pycache__/test_banks.cpython-310-pytest-7.1.3.pyc +++ b/tests/__pycache__/test_banks.cpython-310-pytest-7.1.3.pyc diff --git a/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc b/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc Binary files differindex 0c71fa5..648972e 100644 --- a/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc +++ b/tests/__pycache__/test_edges.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc Binary files differindex cff5622..20e6b24 100644 --- a/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_chirp_common.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/__pycache__/test_wxui_radiothread.cpython-310-pytest-7.1.3.pyc b/tests/unit/__pycache__/test_wxui_radiothread.cpython-310-pytest-7.1.3.pyc Binary files differindex 68805b0..d64f77b 100644 --- a/tests/unit/__pycache__/test_wxui_radiothread.cpython-310-pytest-7.1.3.pyc +++ b/tests/unit/__pycache__/test_wxui_radiothread.cpython-310-pytest-7.1.3.pyc diff --git a/tests/unit/test_bitwise.py b/tests/unit/test_bitwise.py index 3ace170..4ba467f 100644 --- a/tests/unit/test_bitwise.py +++ b/tests/unit/test_bitwise.py @@ -18,7 +18,6 @@ from builtins import bytes import unittest from unittest import mock -import six from chirp import bitwise from chirp import memmap @@ -256,10 +255,7 @@ class TestBitwiseCharTypes(BaseTest): data = memmap.MemoryMapBytes(bytes(b"\xFFoobar1")) obj = bitwise.parse("struct {char foo[7];} bar;", data) - if six.PY3: - expected = '\xffoobar1' - else: - expected = '\\xffoobar1' + expected = '\xffoobar1' self.assertIn(expected, repr(obj.bar)) |
