Project

General

Profile

New Model #6067 ยป radtel_t18.py.diff

Paul Schmidt, 09/05/2023 04:48 PM

View differences:

radtel_t18.py 2023-09-05 17:19:16.708947924 -0400
VOICE_LIST = ["Off", "Chinese", "English"]
VOICE_LIST2 = ["English", "Chinese"]
VOICE_LIST3 = ["Off", "English", "Chinese"]
VOICE_LIST4 = ["Chinese","English"]
TIMEOUTTIMER_LIST = ["Off", "30 seconds", "60 seconds", "90 seconds",
"120 seconds", "150 seconds", "180 seconds",
"210 seconds", "240 seconds", "270 seconds",
......
SCANMODE_LIST[_settings.scanmode]))
basic.append(rs)
if self.MODEL == "RT22S":
if self.MODEL == "RT20":
rs = RadioSetting("voiceprompt", "Voice prompts",
RadioSettingValueList(
VOICE_LIST4,
VOICE_LIST4[_settings.voiceprompt]))
basic.append(rs)
elif self.MODEL == "RT22S":
rs = RadioSetting("voiceprompt", "Voice prompts",
RadioSettingValueBoolean(_settings.voiceprompt))
basic.append(rs)
......
@directory.register
class RT20Radio(T18Radio):
"""RETEVIS RT20"""
VENDOR = "Retevis"
MODEL = "RT20"
ACK_BLOCK = True
BLOCK_SIZE = 0x08
POWER_LEVELS = [chirp_common.PowerLevel("High", watts=2.00),
chirp_common.PowerLevel("Low", watts=0.50)]
_magic = b"8AOGRAM"
_fingerprint = [b"SMP558" + b"\x02"]
_upper = 16
_mem_params = (_upper # number of channels
)
@directory.register
class RT22SRadio(T18Radio):
"""RETEVIS RT22S"""
VENDOR = "Retevis"
    (1-1/1)