Skip to content

Commit

Permalink
Fix #5: some freq steps not being accepted, sort steps
Browse files Browse the repository at this point in the history
  • Loading branch information
egzumer committed Dec 21, 2023
1 parent c8fc39b commit ccaad8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions uvk5_egzumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ccaad8a

Please sign in to comment.