[chirp_devel] Fwd: [PATCH 1 of 8] [alinco.py] Add rf.valid_dtcs_codes

Jim Unroe
Sat Apr 17 18:04:41 PDT 2021


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


# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1618681548 14400
#      Sat Apr 17 13:45:48 2021 -0400
# Node ID 98e6952e5d8e2f03b0a47ed1cfbd62b2d313f025
# Parent  1d50737b1f5703810f064ef165ef8adc1d879dc0
[alinco.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 1d50737b1f57 -r 98e6952e5d8e chirp/drivers/alinco.py
--- a/chirp/drivers/alinco.py   Mon Apr 12 12:21:58 2021 -0400
+++ b/chirp/drivers/alinco.py   Sat Apr 17 13:45:48 2021 -0400
@@ -285,6 +285,7 @@
         rf.valid_tuning_steps = STEPS
         rf.valid_name_length = 7
         rf.valid_power_levels = self._power_levels
+        rf.valid_dtcs_codes = DCS_CODES[self.VENDOR]
         return rf

     def _get_used(self, number):



More information about the chirp_devel mailing list