137 |
137 |
VOICE_LIST = ["Off", "Chinese", "English"]
|
138 |
138 |
VOICE_LIST2 = ["English", "Chinese"]
|
139 |
139 |
VOICE_LIST3 = ["Off", "English", "Chinese"]
|
|
140 |
VOICE_LIST4 = ["Chinese","English"]
|
140 |
141 |
TIMEOUTTIMER_LIST = ["Off", "30 seconds", "60 seconds", "90 seconds",
|
141 |
142 |
"120 seconds", "150 seconds", "180 seconds",
|
142 |
143 |
"210 seconds", "240 seconds", "270 seconds",
|
... | ... | |
690 |
691 |
SCANMODE_LIST[_settings.scanmode]))
|
691 |
692 |
basic.append(rs)
|
692 |
693 |
|
693 |
|
if self.MODEL == "RT22S":
|
|
694 |
if self.MODEL == "RT20":
|
|
695 |
rs = RadioSetting("voiceprompt", "Voice prompts",
|
|
696 |
RadioSettingValueList(
|
|
697 |
VOICE_LIST4,
|
|
698 |
VOICE_LIST4[_settings.voiceprompt]))
|
|
699 |
basic.append(rs)
|
|
700 |
elif self.MODEL == "RT22S":
|
694 |
701 |
rs = RadioSetting("voiceprompt", "Voice prompts",
|
695 |
702 |
RadioSettingValueBoolean(_settings.voiceprompt))
|
696 |
703 |
basic.append(rs)
|
... | ... | |
1025 |
1032 |
|
1026 |
1033 |
|
1027 |
1034 |
@directory.register
|
|
1035 |
class RT20Radio(T18Radio):
|
|
1036 |
"""RETEVIS RT20"""
|
|
1037 |
VENDOR = "Retevis"
|
|
1038 |
MODEL = "RT20"
|
|
1039 |
ACK_BLOCK = True
|
|
1040 |
BLOCK_SIZE = 0x08
|
|
1041 |
|
|
1042 |
POWER_LEVELS = [chirp_common.PowerLevel("High", watts=2.00),
|
|
1043 |
chirp_common.PowerLevel("Low", watts=0.50)]
|
|
1044 |
|
|
1045 |
_magic = b"8AOGRAM"
|
|
1046 |
_fingerprint = [b"SMP558" + b"\x02"]
|
|
1047 |
_upper = 16
|
|
1048 |
_mem_params = (_upper # number of channels
|
|
1049 |
)
|
|
1050 |
|
|
1051 |
|
|
1052 |
@directory.register
|
1028 |
1053 |
class RT22SRadio(T18Radio):
|
1029 |
1054 |
"""RETEVIS RT22S"""
|
1030 |
1055 |
VENDOR = "Retevis"
|