From a557fddee91a3858c4540caa8516773dca8a6c19 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Mon, 9 Sep 2024 20:27:38 -0700 Subject: [PATCH] ftXd: Fix tuning step handling The ft1d driver has seemingly had incorrect tuning step handling since the beginning. As a result, stricter handling of tuning steps provided by the radio started to break down. This fixes them to work according to the OEM software for all the available steps. --- chirp/drivers/ft1d.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/chirp/drivers/ft1d.py b/chirp/drivers/ft1d.py index 3f7f52bd..d0e96325 100644 --- a/chirp/drivers/ft1d.py +++ b/chirp/drivers/ft1d.py @@ -514,10 +514,7 @@ TMODES = ["", "Tone", "TSQL", "DTCS"] DUPLEX = ["", "-", "+", "split"] MODES = ["FM", "AM", "WFM"] -STEPS = list(chirp_common.TUNING_STEPS) -STEPS.remove(30.0) -STEPS.append(100.0) -STEPS.insert(2, 0.0) # There is a skipped tuning step at index 2 (?) +STEPS = [5.0, 6.25, 8.33, 10.0, 12.5, 15.0, 20.0, 25.0, 50.0, 100.0, 9.0] SKIPS = ["", "S", "P"] FT1_DTMF_CHARS = list("0123456789ABCD*#-") @@ -1042,7 +1039,7 @@ def get_memory(self, number): mem.duplex = "" mem.power = POWER_LEVELS[0] mem.mode = "FM" - mem.tuning_step = 0 + mem.tuning_step = STEPS[0] else: mem.freq = chirp_common.fix_rounded_step(int(_mem.freq) * 1000) mem.offset = int(_mem.offset) * 1000