diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2020-02-07 09:59:04 +0100 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2020-02-07 09:59:04 +0100 |
| commit | f26b2ff1e4daa6862e1f87b236549a315dfa934c (patch) | |
| tree | 1a5abce01ebc84892fe8f06e058ff59a6fbb74cb | |
| parent | 00d681381b37ac12674669e37713365f3145b9b9 (diff) | |
New upstream version 20200206upstream/20200206
| -rw-r--r-- | PKG-INFO | 2 | ||||
| -rw-r--r-- | chirp/__init__.py | 2 | ||||
| -rw-r--r-- | chirp/drivers/ft4.py | 187 | ||||
| -rw-r--r-- | chirp/drivers/ic2300.py | 12 | ||||
| -rw-r--r-- | chirp/drivers/tk8180.py | 93 | ||||
| -rw-r--r-- | chirp/ui/memedit.py | 2 |
6 files changed, 211 insertions, 87 deletions
@@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: chirp -Version: daily-20200107 +Version: daily-20200206 Summary: UNKNOWN Home-page: UNKNOWN Author: UNKNOWN diff --git a/chirp/__init__.py b/chirp/__init__.py index a5c0a4c..3e33628 100644 --- a/chirp/__init__.py +++ b/chirp/__init__.py @@ -17,7 +17,7 @@ import os import sys from glob import glob -CHIRP_VERSION="daily-20200107" +CHIRP_VERSION="daily-20200206" module_dir = os.path.dirname(sys.modules["chirp"].__file__) __all__ = [] diff --git a/chirp/drivers/ft4.py b/chirp/drivers/ft4.py index e3f41df..4f4f689 100644 --- a/chirp/drivers/ft4.py +++ b/chirp/drivers/ft4.py @@ -2,6 +2,7 @@ # Derives loosely from two sources released under GPLv2: # ./template.py, Copyright 2012 Dan Smith <dsmith@danplanet.com> # ./ft60.py, Copyright 2011 Dan Smith <dsmith@danplanet.com> +# Edited 2020 Bernhard Hailer AE6YN <ham73tux@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -18,8 +19,8 @@ """ CHIRP driver for Yaesu radios that use the SCU-35 cable. This includes at -least the FT-4, FT-25, FT-35, and FT-65. This driver will not work with -older Yaesu models. +least the FT-4X, FT-4V, FT-65, and FT-25. This driver will not work with older +Yaesu models. """ import logging import struct @@ -261,7 +262,8 @@ def sendcmd(pipe, cmd, response_len): msg = "Bad echo. Sent:" + util.hexprint(cmd) + ", " msg += "Received:" + util.hexprint(echo) LOG.debug(msg) - raise errors.RadioError("Incorrect echo on serial port. Bad cable?") + raise errors.RadioError( + "Incorrect echo on serial port. Radio off? Bad cable?") if response_len is None: return variable_len_resp(pipe) if response_len > 0: @@ -474,8 +476,6 @@ DUPLEX = ["+", "", "-", "", "off", "", "split"] # (0,2,4,5)= (+,-,0, auto) SKIPS = ["", "S"] -BASETYPE_FT4 = ["FT-4XR", "FT-4XE"] -BASETYPE_FT65 = ["FT-65R"] POWER_LEVELS = [chirp_common.PowerLevel("Low", watts=0.5), chirp_common.PowerLevel("Mid", watts=2.5), chirp_common.PowerLevel("High", watts=5.0)] @@ -560,16 +560,53 @@ PMSNAMES = ["%s%02d" % (c, i) for i in range(1, 11) for c in ('L', 'U')] # Each special has unique constrants: band, name yes/no, and pms L/U # The FT-65 class replaces the "prog" entry in this list. # The name field must be the name of a slot array in MEM_FORMAT -SPECIALS = [ +SPECIALS_FT4 = [ ("pms", PMSNAMES), ("vfo", ["VFO A UHF", "VFO A VHF", "VFO B FM", "VFO B VHF", "VFO B UHF"]), ("home", ["HOME FM", "HOME VHF", "HOME UHF"]), ("prog", ["P1", "P2"]) ] -BAND_ASSIGNMENTS = [2, 1, 0, 1, 2, 0, 1, 2] # bands for the vfos and homes +SPECIALS_FT65 = SPECIALS_FT4 FT65_PROGS = ("prog", ["P1", "P2", "P3", "P4"]) -FT65_SPECIALS = list(SPECIALS) # a shallow copy works here -FT65_SPECIALS[-1] = FT65_PROGS # replace the last entry (P key names) +SPECIALS_FT65[-1] = FT65_PROGS # replace the last entry (P key names) + +# I wonder whether we should simply open the bands to what the radios allow +# for RX? The radios do take care of allowing or prohibiting TX on their own. +# In that case, the ASIA settings can be used for any region model. +# To be discussed with Dan Clemmensen. [AE6YN] + +VALID_BANDS_US_DUAL = [ + (65000000, 108000000), # broadcast FM, receive only + (144000000, 148000000), # VHF, US version, TX and RX + (430000000, 450000000) # UHF, US version, TX and RX + ] +VALID_BANDS_EU_DUAL = [ + (65000000, 108000000), # broadcast FM, receive only + (144000000, 146000000), # VHF, EU version, TX and RX + (430000000, 440000000) # UHF, EU version, TX and RX + ] +VALID_BANDS_ASIA_DUAL = [ + (65000000, 108000000), # broadcast FM, receive only + (136000000, 174000000), # VHF, Asia version, TX and RX + (400000000, 480000000) # UHF, Asia version, TX and RX + ] + +VALID_BANDS_US_VHF = [ + (65000000, 108000000), # broadcast FM, receive only + (144000000, 148000000), # VHF, US version, TX and RX + ] +VALID_BANDS_EU_VHF = [ + (65000000, 108000000), # broadcast FM, receive only + (144000000, 146000000), # VHF, EU version, TX and RX + ] +VALID_BANDS_ASIA_VHF = [ + (65000000, 108000000), # broadcast FM, receive only + (136000000, 174000000), # VHF, Asia version, TX and RX + ] + +# bands for the five VFO and three home channel memories +BAND_ASSIGNMENTS_DUALBAND = [2, 1, 0, 1, 2, 0, 1, 2] # all locations used +BAND_ASSIGNMENTS_MONO_VHF = [1, 1, 0, 1, 1, 0, 1, 1] # UHF locations unused # None, and 50 Tones. Use this explicit array because the @@ -620,8 +657,8 @@ class YaesuSC35GenericRadio(chirp_common.CloneModeRadio, chirp_common.ExperimentalRadio): """ Base class for all Yaesu radios using the SCU-35 programming cable - and its protocol. Classes for specific radios extend this class and - are found at the end of this file. + and its protocol. Classes for sub families extend this class and + are found towards the end of this file. """ VENDOR = "Yaesu" MODEL = "SCU-35Generic" # No radio directly uses the base class @@ -629,6 +666,12 @@ class YaesuSC35GenericRadio(chirp_common.CloneModeRadio, MAX_MEM_SLOT = 200 NEEDS_COMPAT_SERIAL = False + # These settings are common to all radios in this family. + _valid_chars = chirp_common.CHARSET_ASCII + numblocks = 0x215 # number of 16-byte blocks in the radio + _memsize = 16 * numblocks # used by CHIRP file loader to guess radio type + MAX_MEM_SLOT = 200 + @classmethod def get_prompts(cls): rp = chirp_common.RadioPrompts() @@ -669,7 +712,6 @@ class YaesuSC35GenericRadio(chirp_common.CloneModeRadio, rf.has_dtcs_polarity = False # REV TN reverses the tone, not the dcs rf.has_cross = True rf.has_settings = True - rf.valid_tuning_steps = self.legal_steps return rf @@ -1027,14 +1069,11 @@ class YaesuSC35GenericRadio(chirp_common.CloneModeRadio, mem = chirp_common.Memory() _mem, ndx, num, regtype, sname = self.slotloc(memref) mem.number = num - mem.freq = int(_mem.freq) * 10 - mem.offset = int(_mem.offset) * self.freq_offset_scale - mem.duplex = DUPLEX[_mem.duplex] - self.decode_sql(mem, _mem) - mem.power = POWER_LEVELS[_mem.tx_pwr] - mem.mode = ["FM", "NFM"][_mem.tx_width] - mem.tuning_step = STEP_CODE[_mem.step] + # First, we need to know whether a channel is enabled, + # then we can process any channel parameters. + # It was found (at least on an FT-25) that channels might be + # uninitialized and memory is just completely filled with 0xFF. if regtype == "pms": mem.extd_number = sname @@ -1043,15 +1082,34 @@ class YaesuSC35GenericRadio(chirp_common.CloneModeRadio, mem.name = clean_name(self._memobj.names[ndx].chrs) mem.empty = not retrieve_bit(self._memobj.enable, ndx) mem.skip = SKIPS[retrieve_bit(self._memobj.scan, ndx)] - txfreq = int(self._memobj.txfreqs[ndx].freq) * 10 - if (txfreq != 0) and (txfreq != mem.freq): - mem.duplex = "split" - mem.offset = txfreq else: mem.empty = False mem.extd_number = sname mem.immutable = ["number", "extd_number", "name", "skip"] + # So, now if channel is not empty, we can do the evaluation of + # all parameters. Otherwise we set them to defaults. + + if mem.empty: + mem.freq = 0 + mem.offset = 0 + mem.duplex = "off" + mem.power = POWER_LEVELS[0] # "High" + mem.mode = "FM" + mem.tuning_step = 0 + else: + mem.freq = int(_mem.freq) * 10 + txfreq = int(self._memobj.txfreqs[ndx].freq) * 10 + if (txfreq != 0) and (txfreq != mem.freq): + mem.duplex = "split" + mem.offset = txfreq + else: + mem.offset = int(_mem.offset) * self.freq_offset_scale + mem.duplex = DUPLEX[_mem.duplex] + self.decode_sql(mem, _mem) + mem.power = POWER_LEVELS[2 - _mem.tx_pwr] + mem.mode = ["FM", "NFM"][_mem.tx_width] + mem.tuning_step = STEP_CODE[_mem.step] return mem def enforce_band(self, memloc, freq, mem_num, sname): @@ -1105,28 +1163,16 @@ class YaesuSC35GenericRadio(chirp_common.CloneModeRadio, return -@directory.register -class YaesuFT4Radio(YaesuSC35GenericRadio): - MODEL = "FT-4XR" - _basetype = BASETYPE_FT4 - valid_bands = [ - (65000000, 108000000), # broadcast FM, receive only - (144000000, 148000000), # VHF, US version, TX and RX - (430000000, 450000000) # UHF, US version, TX and RX - # VHF, RX (136000000, 174000000) - # UHF, RX (400000000, 480000000) - ] - _valid_chars = chirp_common.CHARSET_ASCII - numblocks = 0x215 # number of 16-byte blocks in the radio - _memsize = 16 * numblocks # used by CHIRP file loader to guess radio type - MAX_MEM_SLOT = 200 - Pkeys = 2 # number of programmable keys on the FT-4 - namelen = 6 # length of the mem name display on the FT-4 front-panel - id_str = b'IFT-35R\x00\x00V100\x00\x00' +class YaesuFT4GenericRadio(YaesuSC35GenericRadio): + """ + FT-4 sub family class. Classes for individual radios extend + these classes and are found at the end of this file. + """ + class_specials = SPECIALS_FT4 + Pkeys = 2 # number of programmable keys + namelen = 6 # length of the mem name display on the front-panel freq_offset_scale = 25000 - legal_steps = US_LEGAL_STEPS class_group_descs = YaesuSC35GenericRadio.group_descriptions - class_specials = SPECIALS # names for the setmode function for the programmable keys. Mode zero means # that the key is programmed for a memory not a setmode. SETMODES = [ @@ -1143,31 +1189,19 @@ class YaesuFT4Radio(YaesuSC35GenericRadio): ] -@directory.register -class YaesuFT65Radio(YaesuSC35GenericRadio): - MODEL = "FT-65R" - _basetype = BASETYPE_FT65 - valid_bands = [ - (65000000, 108000000), # broadcast FM, receive only - (144000000, 148000000), # VHF, US version, TX and RX - (430000000, 450000000) # UHF, US version, TX and RX - # VHF, RX (136000000, 174000000) - # UHF, RX (400000000, 480000000) - ] - _valid_chars = chirp_common.CHARSET_ASCII - numblocks = 0x215 # number of 16-byte blocks in the radio - _memsize = 16 * numblocks # used by CHIRP file loader to guess radio type - MAX_MEM_SLOT = 200 - Pkeys = 4 # number of programmable keys on the FT-65 - namelen = 8 # length of the mem name display on the FT-65 front panel - id_str = b'IH-420\x00\x00\x00V100\x00\x00' +class YaesuFT65GenericRadio(YaesuSC35GenericRadio): + """ + FT-65 sub family class. Classes for individual radios extend + these classes and are found at the end of this file. + """ + class_specials = SPECIALS_FT65 + Pkeys = 4 # number of programmable keys + namelen = 8 # length of the mem name display on the front-panel freq_offset_scale = 50000 - legal_steps = US_LEGAL_STEPS # we need a deep copy here because we are adding deeper than the top level. class_group_descs = copy.deepcopy(YaesuSC35GenericRadio.group_descriptions) add_paramdesc( class_group_descs, "misc", ("compander", "Compander", ["OFF", "ON"])) - class_specials = FT65_SPECIALS # names for the setmode function for the programmable keys. Mode zero means # that the key is programmed for a memory not a setmode. SETMODES = [ @@ -1180,3 +1214,30 @@ class YaesuFT65Radio(YaesuSC35GenericRadio): "step", "tot", "tx pwr", "tx save", "vfo.spl", # 30-34 "vox", "wfm.rcv", "wide/nar", "wx alert", "scramble" # 35-39 ] + + +# Classes for each individual radio. + + +@directory.register +class YaesuFT4XRRadio(YaesuFT4GenericRadio): + """ + FT-4X dual band, US version + """ + MODEL = "FT-4XR" + id_str = b'IFT-35R\x00\x00V100\x00\x00' + valid_bands = VALID_BANDS_US_DUAL + legal_steps = US_LEGAL_STEPS + BAND_ASSIGNMENTS = BAND_ASSIGNMENTS_DUALBAND + + +@directory.register +class YaesuFT65RRadio(YaesuFT65GenericRadio): + """ + FT-65 dual band, US version + """ + MODEL = "FT-65R" + id_str = b'IH-420\x00\x00\x00V100\x00\x00' + valid_bands = VALID_BANDS_US_DUAL + legal_steps = US_LEGAL_STEPS + BAND_ASSIGNMENTS = BAND_ASSIGNMENTS_DUALBAND diff --git a/chirp/drivers/ic2300.py b/chirp/drivers/ic2300.py index d39cc44..358d454 100644 --- a/chirp/drivers/ic2300.py +++ b/chirp/drivers/ic2300.py @@ -56,7 +56,8 @@ struct { tone_mode:4; u8 unknown1:3, mode_narrow:1, - unknown2:4; + power:2, + unknown2:2; u8 dtcs_polarity:2, duplex:2, unknown3:1, @@ -106,9 +107,9 @@ DTCSP = ["NN", "NR", "RN", "RR"] DTCS_POLARITY = ["NN", "NR", "RN", "RR"] POWER_LEVELS = [chirp_common.PowerLevel("High", watts=65), - chirp_common.PowerLevel("Mid", watts=25), + chirp_common.PowerLevel("Low", watts=5), chirp_common.PowerLevel("MidLow", watts=10), - chirp_common.PowerLevel("Low", watts=5)] + chirp_common.PowerLevel("Mid", watts=25)] def _wipe_memory(mem, char): @@ -178,6 +179,7 @@ class IC2300Radio(icf.IcomCloneModeRadio): mem.dtcs_polarity = DTCS_POLARITY[_mem.dtcs_polarity] mem.duplex = DUPLEX[_mem.duplex] mem.skip = "S" if _flag.skip else "" + mem.power = POWER_LEVELS[_mem.power] # Reverse duplex mem.extra = RadioSettingGroup("extra", "Extra") @@ -221,6 +223,10 @@ class IC2300Radio(icf.IcomCloneModeRadio): _mem.mode_narrow = mem.mode.startswith("N") _mem.dtcs_polarity = DTCSP.index(mem.dtcs_polarity) _mem.duplex = DUPLEX.index(mem.duplex) + if mem.power: + _mem.power = POWER_LEVELS.index(mem.power) + else: + _mem.power = POWER_LEVELS[0] _flag.skip = mem.skip != "" for setting in mem.extra: diff --git a/chirp/drivers/tk8180.py b/chirp/drivers/tk8180.py index 594abac..1bfe97e 100644 --- a/chirp/drivers/tk8180.py +++ b/chirp/drivers/tk8180.py @@ -49,7 +49,8 @@ struct { char sw_key[12]; u8 unknown2[4]; char model[5]; - u8 unknown3[11]; + u8 variant; + u8 unknown3[10]; } header; #seekto 0x0140; @@ -188,6 +189,9 @@ SUBLCD = ['Zone Number', 'CH/GID Number', 'OSD List Number'] CLOCKFMT = ['12H', '24H'] DATEFMT = ['Day/Month', 'Month/Day'] MICSENSE = ['On'] +ONLY_MOBILE_SETTINGS = ['power_switch_memory', 'off_hook_decode', + 'ignition_sense', 'mvp', 'it', 'ignition_mode'] + POWER_LEVELS = [chirp_common.PowerLevel("Low", watts=5), chirp_common.PowerLevel("High", watts=50)] @@ -239,8 +243,13 @@ def do_ident(radio): ack = radio.pipe.read(1) if ack != b'\x06': raise errors.RadioError('Radio refused program mode') - if ident[:5] not in (b'M8180',): - raise errors.RadioError('Unsupported radio model %s' % ident[:5]) + if ident[:6] not in (radio._model,): + model = ident[:5].decode() + variants = {b'\x06': 'K, K1, K3 (450-520MHz)', + b'\x07': 'K2, K4 (400-470MHz)'} + if model == 'P3180': + model += ' ' + variants.get(ident[5], '(Unknown)') + raise errors.RadioError('Unsupported radio model %s' % model) def checksum_data(data): @@ -418,6 +427,10 @@ class KenwoodTKx180Radio(chirp_common.CloneModeRadio): LOG.exception('General failure') raise errors.RadioError('Failed to upload to radio: %s' % e) + @property + def is_portable(self): + return self._model.startswith(b'P') + def probe_layout(self): start_addrs = [] tmp_format = '#seekto 0x0A00; ul16 zone_starts[128];' @@ -465,7 +478,6 @@ class KenwoodTKx180Radio(chirp_common.CloneModeRadio): 'count': max(count, 2), # bitwise bug, one-element array 'index': index}) - print(mem_format) self._memobj = bitwise.parse(mem_format, self._mmap) def expand_mmap(self, zone_sizes): @@ -568,7 +580,7 @@ class KenwoodTKx180Radio(chirp_common.CloneModeRadio): rf.has_sub_devices = True rf.can_odd_split = True rf.valid_tmodes = ['', 'Tone', 'TSQL', 'DTCS'] - rf.valid_bands = [(400000000, 520000000)] + rf.valid_bands = self.VALID_BANDS rf.valid_modes = ['FM', 'NFM'] rf.valid_tuning_steps = [2.5, 5.0, 6.25, 12.5, 10.0, 15.0, 20.0, 25.0, 50.0, 100.0] @@ -754,11 +766,13 @@ class KenwoodTKx180Radio(chirp_common.CloneModeRadio): def _pure_choice_setting(self, settings_key, name, choices, default='Off'): if default is not None: - choices = [default] + choices + ui_choices = [default] + choices + else: + ui_choices = choices s = RadioSetting( settings_key, name, RadioSettingValueList( - choices, + ui_choices, get_choice(self._memobj.settings, settings_key, choices, default))) s.set_apply_callback(set_choice, self._memobj.settings, @@ -785,7 +799,8 @@ class KenwoodTKx180Radio(chirp_common.CloneModeRadio): common1.append(self._pure_choice_setting('sublcd', 'Sub LCD Display', - SUBLCD)) + SUBLCD, + default='None')) def apply_clockfmt(setting): settings.clockfmt = CLOCKFMT.index(str(setting.value)) @@ -832,13 +847,17 @@ class KenwoodTKx180Radio(chirp_common.CloneModeRadio): ('ssi', 'Signal Strength Indicator'), ('ignition_sense', 'Ingnition Sense')] for key, name in inverted_flags: + if self.is_portable and key in ONLY_MOBILE_SETTINGS: + # Skip settings that are not valid for portables + continue common1.append(self._inverted_flag_setting(key, name)) - common1.append(self._pure_choice_setting('ignition_mode', - 'Ignition Mode', - ['Ignition & SW', - 'Ignition Only'], - None)) + if not self.is_portable and 'ignition_mode' in ONLY_MOBILE_SETTINGS: + common1.append(self._pure_choice_setting('ignition_mode', + 'Ignition Mode', + ['Ignition & SW', + 'Ignition Only'], + None)) def apply_it(setting): settings.ignition_time = int(setting.value) / 600 @@ -848,7 +867,8 @@ class KenwoodTKx180Radio(chirp_common.CloneModeRadio): 'it', 'Ignition Timer (s)', RadioSettingValueInteger(10, 28800, _it)) it.set_apply_callback(apply_it) - common1.append(it) + if not self.is_portable and 'it' in ONLY_MOBILE_SETTINGS: + common1.append(it) return common1 @@ -895,13 +915,17 @@ class KenwoodTKx180Radio(chirp_common.CloneModeRadio): levels = {'lo_volume': 'Low Volume Level (Fixed Volume)', 'hi_volume': 'High Volume Level (Fixed Volume)', - 'min_volume': 'Minimum Volume', - 'max_volume': 'Maximum Volume'} + 'min_volume': 'Minimum Audio Volume', + 'max_volume': 'Maximum Audio Volume'} for value, name in levels.items(): setting = getattr(settings, value) + if 'Audio' in name: + minimum = 0 + else: + minimum = 1 volume = RadioSetting( 'settings.%s' % value, name, - RadioSettingValueInteger(1, 31, int(setting))) + RadioSettingValueInteger(minimum, 31, int(setting))) volume.set_apply_callback(apply_vol_level, value) common2.append(volume) @@ -927,11 +951,12 @@ class KenwoodTKx180Radio(chirp_common.CloneModeRadio): _volpreset = int(settings.min_vol_preset) volpreset = RadioSetting( - 'mvp', 'Minimum Volume Preset', + 'mvp', 'Minimum Volume Type', RadioSettingValueList(MIN_VOL_PRESET.keys(), MIN_VOL_PRESET_REV[_volpreset])) volpreset.set_apply_callback(apply_mvp) - common2.append(volpreset) + if not self.is_portable and 'mvp' in ONLY_MOBILE_SETTINGS: + common2.append(volpreset) return common2 @@ -1113,8 +1138,10 @@ class KenwoodTKx180Radio(chirp_common.CloneModeRadio): class _Zone(KenwoodTKx180RadioZone): VENDOR = self.VENDOR MODEL = self.MODEL + VALID_BANDS = self.VALID_BANDS VARIANT = 'Zone %s' % ( str(zone.zoneinfo.name).rstrip('\x00').rstrip()) + _model = self._model zones.append(_Zone(self, i)) return zones @@ -1153,5 +1180,33 @@ class KenwoodTKx180RadioZone(KenwoodTKx180Radio): if has_future: @directory.register + class KenwoodTK7180Radio(KenwoodTKx180Radio): + MODEL = 'TK-7180' + VALID_BANDS = [(136000000, 174000000)] + _model = b'M7180\x04' + + @directory.register class KenwoodTK8180Radio(KenwoodTKx180Radio): MODEL = 'TK-8180' + VALID_BANDS = [(400000000, 520000000)] + _model = b'M8180\x06' + + @directory.register + class KenwoodTK2180Radio(KenwoodTKx180Radio): + MODEL = 'TK-2180' + VALID_BANDS = [(136000000, 174000000)] + _model = b'P2180\x04' + + # K1,K3 are technically 450-470 (K3 == keypad) + @directory.register + class KenwoodTK3180K1Radio(KenwoodTKx180Radio): + MODEL = 'TK-3180K' + VALID_BANDS = [(400000000, 520000000)] + _model = b'P3180\x06' + + # K2,K4 are technically 400-470 (K4 == keypad) + @directory.register + class KenwoodTK3180K2Radio(KenwoodTKx180Radio): + MODEL = 'TK-3180K2' + VALID_BANDS = [(400000000, 520000000)] + _model = b'P3180\x07' diff --git a/chirp/ui/memedit.py b/chirp/ui/memedit.py index df1f9da..e521e5f 100644 --- a/chirp/ui/memedit.py +++ b/chirp/ui/memedit.py @@ -1371,6 +1371,8 @@ class MemoryEditor(common.Editor): if self._features["valid_power_levels"]: self.defaults[_("Power")] = self._features["valid_power_levels"][0] + self.choices[_("Tune Step")] = self._features["valid_tuning_steps"] + self.choices[_("Duplex")] = list(self._features.valid_duplexes) if self.defaults[_("Mode")] not in self._features.valid_modes: |
