[chirp_devel] [PATCH] [tg_uv2p] Add support for end tone elimination setting Fixes second issue in #9939
Ran Katz
Wed Aug 3 03:44:22 PDT 2022
# HG changeset patch
# User Ran Katz <rankatz at gmail.com>
# Date 1659523376 -10800
# Wed Aug 03 13:42:56 2022 +0300
# Node ID 6ee649b0382a7f4a6f6b6a1794a4e15b515f5009
# Parent 7dc83c72b14cffbeac3c221f798a0512b282c1ca
[tg_uv2p] Add support for end tone elimination setting Fixes second issue in #9939
diff --git a/chirp/drivers/tg_uv2p.py b/chirp/drivers/tg_uv2p.py
--- a/chirp/drivers/tg_uv2p.py
+++ b/chirp/drivers/tg_uv2p.py
@@ -76,8 +76,8 @@
u8 unknown5;
u8 rxmode;
u8 unknown6:7,
- no_end_tone:1;
- u8 vfo_model;
+ not_end_tone_elim:1;
+ u8 vfo_mode;
};
struct vfo {
@@ -524,6 +524,16 @@
RadioSettingValueMap(options_map, _settings.step))
cfg_grp.append(rs)
+ # End (Tail) tone elimination
+ mem_vals = [0, 1]
+ user_options = ["Tone Elimination On", "Tone Elimination Off"]
+ options_map = zip(user_options, mem_vals)
+
+ rs = RadioSetting("not_end_tone_elim", "Tx End Tone Elimination",
+ RadioSettingValueMap(options_map,
+ _settings.not_end_tone_elim))
+ cfg_grp.append(rs)
+
#
# VFO Settings
#
More information about the chirp_devel
mailing list