From ccaad8aa329b087340fa4bc19c9a4a676ffe95e3 Mon Sep 17 00:00:00 2001 From: Krzysiek Egzmont Date: Thu, 21 Dec 2023 15:47:13 +0100 Subject: [PATCH] Fix #5: some freq steps not being accepted, sort steps --- uvk5_egzumer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/uvk5_egzumer.py b/uvk5_egzumer.py index 2b6aa2d..56ecb33 100644 --- a/uvk5_egzumer.py +++ b/uvk5_egzumer.py @@ -710,7 +710,9 @@ def get_features(self): rf.valid_power_levels = UVK5_POWER_LEVELS rf.valid_special_chans = self.Get_VFO_CHANNEL_NAMES() - rf.valid_tuning_steps = STEPS + steps = STEPS.copy() + steps.sort() + rf.valid_tuning_steps = steps rf.valid_tmodes = ["", "Tone", "TSQL", "DTCS", "Cross"] rf.valid_cross_modes = ["Tone->Tone", "Tone->DTCS", "DTCS->Tone", @@ -966,7 +968,7 @@ def get_memory(self, number2): mem.mode = "UNSUPPORTED BY CHIRP" # tuning step - tstep = _mem.step & 0x7 + tstep = _mem.step if tstep < len(STEPS): mem.tuning_step = STEPS[tstep] else: