Skip to content

Commit

Permalink
uvk5: Fix read-only download from any firmware
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kk7ds committed Aug 26, 2024
1 parent 97d64b2 commit 9ffd59d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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

0 comments on commit 9ffd59d

Please sign in to comment.