Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for kenwood live #1067

Merged
merged 2 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions chirp/drivers/kenwood_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ def get_features(self):
rf.valid_name_length = 8
rf.valid_skips = D710_SKIP
rf.memory_bounds = (0, 999)
rf.valid_bands = [(118000000, 524000000), (800000000, 1300000000)]
return rf

def _cmd_get_memory(self, number):
Expand Down
11 changes: 9 additions & 2 deletions chirp/wxui/memedit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1308,9 +1308,16 @@ def _set_memory_defaults(self, mem, *only):
mem.offset = want_offset

if defaults.step_khz in features.valid_tuning_steps:
LOG.debug(
'Chose default step %s from bandplan' % defaults.step_khz)
want_tuning_step = defaults.step_khz
if mem.freq % (want_tuning_step * 1000):
want_tuning_step = chirp_common.required_step(mem.freq)
LOG.debug('Bandplan step %s not suitable for %s, choosing %s',
defaults.step_khz,
chirp_common.format_freq(mem.freq),
want_tuning_step)
else:
LOG.debug(
'Chose default step %s from bandplan' % defaults.step_khz)
else:
want_tuning_step = 5.0
try:
Expand Down
Loading