From a1591e91a7aeb8c7c447c202bed9a5a201b29b54 Mon Sep 17 00:00:00 2001 From: Jim Unroe Date: Sun, 12 Jan 2025 20:22:56 -0500 Subject: [PATCH] radtel_t18: add Retevis H777H PMR version - fixes #11775 --- chirp/drivers/radtel_t18.py | 15 ++++++++++++++- tests/py3_driver_testers.txt | 3 ++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/chirp/drivers/radtel_t18.py b/chirp/drivers/radtel_t18.py index 2ecf822d..3337d18f 100644 --- a/chirp/drivers/radtel_t18.py +++ b/chirp/drivers/radtel_t18.py @@ -1042,7 +1042,7 @@ def get_settings(self): current_index=_settings.sidekey2L)) basic.append(rs) - if self.MODEL == "H777H_FRS": + if self.MODEL == "H777H_FRS" or self.MODEL == "H777H_PMR": rs = RadioSetting("codesw", "Code Switch", RadioSettingValueBoolean(_settings.codesw)) basic.append(rs) @@ -1568,3 +1568,16 @@ class H777HFRSRadio(T18Radio): _reserved = True _frs16 = True _pmr = False + + +@directory.register +class H777HPMRRadio(H777HFRSRadio): + """Retevis H777H PMR""" + VENDOR = "Retevis" + MODEL = "H777H_PMR" # SKU: A9104K + + POWER_LEVELS = [chirp_common.PowerLevel("High", watts=0.500), + chirp_common.PowerLevel("Low", watts=0.500)] + + _frs16 = False + _pmr = True diff --git a/tests/py3_driver_testers.txt b/tests/py3_driver_testers.txt index e09b0b70..2925741f 100644 --- a/tests/py3_driver_testers.txt +++ b/tests/py3_driver_testers.txt @@ -253,7 +253,8 @@ Radtel_RT-495,@KC9HI,14-Jun-2024 Radtel_RT-630,@KC9HI,14-Jun-2024 Radtel_RT-730,@KC9HI,11-May-2024 Radtel_T18,@KC9HI,28-Nov-2022 -Retevis_H777H,@KC9HI,12-Jan-2025 +Retevis_H777H_FRS,@KC9HI,12-Jan-2025 +Retevis_H777H_PMR,@KC9HI,12-Jan-2025 Retevis_H777S,@KC9HI,22-Dec-2022 Retevis_H777_Plus,@KC9HI,4-Dec-2022 Retevis_P2,@KC9HI,15-Jun-2024