From 9ffd59d6aaf0522fa58f0dff9faecc2c5afc265f Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Mon, 26 Aug 2024 15:51:44 -0700 Subject: [PATCH 1/3] uvk5: Fix read-only download from any firmware This fixes the ability to download from any uvk5 in read-only mode, regardless of firmware version. The previous patch did not properly implement the exclusion in the download routine. --- chirp/drivers/uvk5.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chirp/drivers/uvk5.py b/chirp/drivers/uvk5.py index 443b0649..fb9ffe25 100644 --- a/chirp/drivers/uvk5.py +++ b/chirp/drivers/uvk5.py @@ -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') From 8c8dd24a6eb9fb37e378dd0eaf3ce047dab6d86c Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Mon, 26 Aug 2024 15:55:31 -0700 Subject: [PATCH 2/3] uvk5: Bless 3.00.x firmware As reported in #11495, this firmware version was found in the field to be working. Fixes #11495 --- chirp/drivers/uvk5.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chirp/drivers/uvk5.py b/chirp/drivers/uvk5.py index fb9ffe25..d6a956ca 100644 --- a/chirp/drivers/uvk5.py +++ b/chirp/drivers/uvk5.py @@ -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 From 7863a6df00809e3e57e2363c32dc2499eae2bc3e Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Mon, 26 Aug 2024 18:24:00 -0700 Subject: [PATCH 3/3] Fix kenwood V7A and derivatives flow control Fixes #10885 --- chirp/drivers/kenwood_live.py | 1 + 1 file changed, 1 insertion(+) diff --git a/chirp/drivers/kenwood_live.py b/chirp/drivers/kenwood_live.py index 9d4e56a0..fc23963a 100644 --- a/chirp/drivers/kenwood_live.py +++ b/chirp/drivers/kenwood_live.py @@ -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