[chirp_devel] Fwd: [PATCH 7 of 8] [uv5r.py] Add rf.valid_dtcs_codes

Jim Unroe
Sat Apr 17 18:08:33 PDT 2021


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


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1618705592 14400
#      Sat Apr 17 20:26:32 2021 -0400
# Node ID 0f14cb3f9b3d1f808ef58923648ffca8d7cfd7b4
# Parent  2d31d49616aa1594718c6b17379df01acb5e0651
[uv5r.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 2d31d49616aa -r 0f14cb3f9b3d chirp/drivers/uv5r.py
--- a/chirp/drivers/uv5r.py     Sat Apr 17 20:23:02 2021 -0400
+++ b/chirp/drivers/uv5r.py     Sat Apr 17 20:26:32 2021 -0400
@@ -783,6 +783,7 @@
         rf.valid_duplexes = ["", "-", "+", "split", "off"]
         rf.valid_modes = ["FM", "NFM"]
         rf.valid_tuning_steps = STEPS
+        rf.valid_dtcs_codes = UV5R_DTCS

         normal_bands = [self._vhf_range, self._uhf_range]
         rax_bands = [self._vhf_range, self._220_range]



More information about the chirp_devel mailing list