Skip to content

Commit ccaad8a

Browse files
committed
Fix #5: some freq steps not being accepted, sort steps
1 parent c8fc39b commit ccaad8a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

uvk5_egzumer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,9 @@ def get_features(self):
710710
rf.valid_power_levels = UVK5_POWER_LEVELS
711711
rf.valid_special_chans = self.Get_VFO_CHANNEL_NAMES()
712712

713-
rf.valid_tuning_steps = STEPS
713+
steps = STEPS.copy()
714+
steps.sort()
715+
rf.valid_tuning_steps = steps
714716

715717
rf.valid_tmodes = ["", "Tone", "TSQL", "DTCS", "Cross"]
716718
rf.valid_cross_modes = ["Tone->Tone", "Tone->DTCS", "DTCS->Tone",
@@ -966,7 +968,7 @@ def get_memory(self, number2):
966968
mem.mode = "UNSUPPORTED BY CHIRP"
967969

968970
# tuning step
969-
tstep = _mem.step & 0x7
971+
tstep = _mem.step
970972
if tstep < len(STEPS):
971973
mem.tuning_step = STEPS[tstep]
972974
else:

0 commit comments

Comments
 (0)