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

UVK5 Fixes #1097

Merged
merged 3 commits into from
Aug 27, 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 @@ -394,6 +394,7 @@ def set_memory(self, memory):
class TMV7Radio(KenwoodOldLiveRadio):
"""Kenwood TM-V7"""
MODEL = "TM-V7"
HARDWARE_FLOW = False

mem_upper_limit = 200 # Will be updated

Expand Down
7 changes: 4 additions & 3 deletions chirp/drivers/uvk5.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def do_download(radio):
if not f:
raise errors.RadioError('Unable to determine firmware version')

if not radio.k5_approve_firmware(f):
if not radio.k5_approve_firmware(f) and radio.VARIANT != 'unsupported':
raise errors.RadioError(
'Firmware version is not supported by this driver')

Expand Down Expand Up @@ -2043,8 +2043,9 @@ def set_memory(self, mem):
class UVK5Radio(UVK5RadioBase):
@classmethod
def k5_approve_firmware(cls, firmware):
approved_prefixes = ('k5_2.01.', 'app_2.01.', '2.01.',
'1o11', '4.00.', 'k5_4.00.', '5.00.')
approved_prefixes = (
'k5_2.01.', 'app_2.01.', '2.01.', '3.00.',
'1o11', '4.00.', 'k5_4.00.', '5.00.')
return any(firmware.startswith(x) for x in approved_prefixes)

@classmethod
Expand Down
Loading