[chirp_devel] [PATCH] [H777] Retevis H777 Plus
Jim Unroe
Sun Dec 20 13:41:33 PST 2020
# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1608500230 18000
# Sun Dec 20 16:37:10 2020 -0500
# Node ID 788c4e6183b94de420f41f556752adfe4aed5c9b
# Parent 9bb169015ad5232a1915fe52eef87367ccbd70d1
[H777] Retevis H777 Plus
This patch adds support for the Retevis H777 Plus (FRS/PMR) models with
fixed antennas.
Related to #8565
diff -r 9bb169015ad5 -r 788c4e6183b9 chirp/drivers/h777.py
--- a/chirp/drivers/h777.py Sat Dec 19 15:18:22 2020 -0500
+++ b/chirp/drivers/h777.py Sun Dec 20 16:37:10 2020 -0500
@@ -301,6 +301,7 @@
_memsize = 0x03E0
_has_fm = True
_has_sidekey = True
+ _has_scanmodes = True
def get_features(self):
rf = chirp_common.RadioFeatures()
@@ -479,11 +480,13 @@
RadioSettingValueBoolean(_settings.scan))
basic.append(rs)
- rs = RadioSetting("settings2.scanmode", "Scan mode",
- RadioSettingValueList(
- SCANMODE_LIST,
- SCANMODE_LIST[self._memobj.settings2.scanmode]))
- basic.append(rs)
+ if self._has_scanmodes:
+ rs = RadioSetting("settings2.scanmode", "Scan mode",
+ RadioSettingValueList(
+ SCANMODE_LIST,
+ SCANMODE_LIST[
+ self._memobj.settings2.scanmode]))
+ basic.append(rs)
rs = RadioSetting("vox", "VOX",
RadioSettingValueBoolean(_settings.vox))
@@ -638,3 +641,15 @@
def match_model(cls, filedata, filename):
# This model is only ever matched via metadata
return False
+
+ at directory.register
+class H777PlusRadio(H777Radio):
+ VENDOR = "Retevis"
+ MODEL = "H777 Plus"
+ _has_fm = False
+ _has_scanmodes = False
+
+ @classmethod
+ def match_model(cls, filedata, filename):
+ # This model is only ever matched via metadata
+ return False
More information about the chirp_devel
mailing list