[chirp_devel] [PATCH] [UV-5R] Firmware Version Filled With Spaces
Jim Unroe
Thu Nov 26 19:01:09 PST 2020
# HG changeset patch
# User Jim Unroe <rock.unroe at gmail.com>
# Date 1606445998 18000
# Thu Nov 26 21:59:58 2020 -0500
# Node ID 8d906ccd00db039eee18a8af23c87ed4d2d6f127
# Parent 74735cbeedc0914868bd44fd0d97f17c50569afe
[UV-5R] Firmware Version Filled With Spaces
This patch accomodates models supported by the uv5r.py driver that
have a firmware versoion populated with space characters.
fixes #8473
diff -r 74735cbeedc0 -r 8d906ccd00db chirp/drivers/uv5r.py
--- a/chirp/drivers/uv5r.py Thu Nov 26 21:48:23 2020 -0500
+++ b/chirp/drivers/uv5r.py Thu Nov 26 21:59:58 2020 -0500
@@ -556,6 +556,13 @@
# then append that model type to the end of the image so it can
# be properly detected when loaded.
append_model = True
+ elif "\x20" * 14 in radio_version:
+ # A radio UV-5R style radio that reports no firmware version has
+ # been detected.
+ # We are going to count on the user to make the right choice and
+ # then append that model type to the end of the image so it can
+ # be properly detected when loaded.
+ append_model = True
elif not any(type in radio_version for type in radio._basetype):
# This radio can't be properly detected by parsing its firmware
# version.
More information about the chirp_devel
mailing list