[chirp_devel] Fwd: [PATCH 5 of 8] [retevis_rt22.py] Add rf.valid_dtcs_codes

Jim Unroe
Sat Apr 17 18:07:16 PDT 2021


---------- Forwarded message ---------
From: Jim Unroe <kc9hi at comcast.net>
Date: Sat, Apr 17, 2021 at 9:03 PM
Subject: [PATCH 5 of 8] [retevis_rt22.py] Add rf.valid_dtcs_codes
To: <Rock.Unroe at gmail.com>


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1618705209 14400
#      Sat Apr 17 20:20:09 2021 -0400
# Node ID c524188d05ef5ed726fc57c0d13a8adcdcbdaada
# Parent  8c82add6bb09bbbe43fd7740dd11c09074989b53
[retevis_rt22.py] Add rf.valid_dtcs_codes

This patch adds "rf.valid_dtcs_codes" to the get_features(self) radio features
list so CHIRP is aware of the full list of DTCS codes supported by the radio.

related to #8995

diff -r 8c82add6bb09 -r c524188d05ef chirp/drivers/retevis_rt22.py
--- a/chirp/drivers/retevis_rt22.py     Sat Apr 17 13:58:36 2021 -0400
+++ b/chirp/drivers/retevis_rt22.py     Sat Apr 17 20:20:09 2021 -0400
@@ -368,6 +368,7 @@
         rf.valid_power_levels = RT22_POWER_LEVELS
         rf.valid_duplexes = ["", "-", "+", "split", "off"]
         rf.valid_modes = ["NFM", "FM"]  # 12.5 KHz, 25 kHz.
+        rf.valid_dtcs_codes = RT22_DTCS
         rf.memory_bounds = (1, 16)
         rf.valid_tuning_steps = [2.5, 5., 6.25, 10., 12.5, 25.]
         rf.valid_bands = [(400000000, 520000000)]



More information about the chirp_devel mailing list