[chirp_devel] [PATCH] [tguv2] Add support for un-initialized step setting Fixes first issue in #9939

Ran Katz
Wed Aug 3 03:26:26 PDT 2022


# HG changeset patch
# User Ran Katz <rankatz at gmail.com>
# Date 1659522354 -10800
#      Wed Aug 03 13:25:54 2022 +0300
# Node ID 7dc83c72b14cffbeac3c221f798a0512b282c1ca
# Parent  d8618b87d8d5fde8c52e066b02f6a49cbe8fcd70
[tguv2] Add support for un-initialized step setting Fixes first issue in #9939
Un-initialized vfo step setting has a value of 0xff which was not supported, and now added.

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
@@ -515,7 +515,9 @@
 
         # Step
         mem_vals = range(0, len(TGUV2P_STEPS))
+        mem_vals.append(0xFF)
         user_options = [(str(x) + " kHz") for x in TGUV2P_STEPS]
+        user_options.append("Unknown")
         options_map = zip(user_options, mem_vals)
 
         rs = RadioSetting("step", "Current (VFO?) step size",




More information about the chirp_devel mailing list