summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2020-08-06 23:01:02 +0200
committerChristoph Berg <myon@debian.org>2020-08-06 23:01:02 +0200
commit4ff6c01aa7f9ae1b8db63d192b5e664dcfd1ea69 (patch)
tree794be3d85ce46e81456e5f97f7ec5c2017ca288f /debian/patches
parent0b8659650baf72c044f8190bce1f4b803ad04a80 (diff)
Lots of python3 porting missing, tested so far: Baofeng UV-5R.debian/1%20200227+py3+20200213-1
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/py3-fixes11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/patches/py3-fixes b/debian/patches/py3-fixes
index 092d5bb..087a266 100644
--- a/debian/patches/py3-fixes
+++ b/debian/patches/py3-fixes
@@ -9,3 +9,14 @@
"""Sets the parameters to use for the query"""
self._lat = lat
self._lon = lon
+--- a/chirp/drivers/uv5r.py
++++ b/chirp/drivers/uv5r.py
+@@ -587,7 +587,7 @@ def _do_download(radio):
+ data += _read_block(radio, i, 0x40, False)
+
+ if append_model:
+- data += radio.MODEL.ljust(8)
++ data += bytes(radio.MODEL.encode('utf-8').ljust(8))
+
+ LOG.debug("done.")
+ return memmap.MemoryMapBytes(data)