Skip to content

Commit

Permalink
ftXd: Fix tuning step handling
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kk7ds committed Sep 10, 2024
1 parent fe0db30 commit 68458f8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions chirp/drivers/ft1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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*#-")

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 68458f8

Please sign in to comment.